An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: Simplify database maps to built-in OpenFreeMap https://github.com/siyuan-note/siyuan/issues/20129
Daniel5aef49b30533
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.jsonindex 57b2a93642..5cca57dbb0 100644--- a/app/appearance/langs/ar.json+++ b/app/appearance/langs/ar.json@@ -3,72 +3,29 @@"configGroupOCREngine": "محرّك التعرّف","configGroupSignInTokens": "تسجيل الدخول والرموز","searchControlUnavailable": "هذا الخيار غير متاح لطريقة البحث الحالية",- "selectCoordinateSystem": "اختر نظام الإحداثيات","coordinateOrder": "ترتيب الإحداثيات",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, خرائط Tencent)",- "coordinateSystemBD09": "BD-09 (خرائط Baidu)","mapAuthenticationBypass": "لا تتوفر الخرائط أثناء تفعيل تجاوز المصادقة. تظل السجلات متاحة",- "mapSettings": "الخريطة",- "mapServices": "خدمات الخرائط",- "mapServicesTip": "أضف خدمات لهذا الجهاز، ثم اختر خدمة بشكل منفصل في كل عرض خريطة لقاعدة البيانات",- "mapAddService": "إضافة خدمة",- "mapServiceName": "اسم الخدمة",- "mapServiceID": "معرّف الخدمة",- "mapServiceIDTip": "احتفظ بهذا المعرّف عند إعداد الخدمة نفسها على جهاز آخر؛ ستستمر العروض الحالية في الإشارة إليه",- "mapProvider": "مزوّد الخرائط",- "mapProviderAMap": "AMap",- "mapProviderTencent": "خرائط Tencent",- "mapProviderBaidu": "خرائط Baidu",- "mapSecurityCode": "رمز الأمان",- "mapCredentialsTip": "اترك الحقل فارغًا للاحتفاظ ببيانات الاعتماد المحفوظة، أو أدخل بديلًا، أو امسحها صراحةً",- "mapClearCredential": "مسح بيانات الاعتماد المحفوظة",- "mapCredentialSaved": "محفوظة؛ اتركه فارغًا للاحتفاظ بها",- "mapCredentialsPresent": "حُدّدت حقول الإعداد المطلوبة؛ لم يتم التحقق من الوصول إلى الخدمة",- "mapCredentialsMissing": "بيانات الاعتماد المطلوبة غير موجودة",- "mapNoServices": "لم يتم اختيار خدمة",- "mapRenderingTip": "تعرض الخرائط الإحداثيات الموجودة فقط. لا تتوفر ميزات البحث عن العناوين أو الترميز الجغرافي أو المسارات أو الكشف التلقائي عن الإحداثيات؛ وتبقى الإحداثيات المحفوظة ونظام الإحداثيات المعلن دون تغيير",- "mapProductionTip": "قبل الاستخدام، تحقّق من أهلية الحساب والتراخيص والحصص والنطاقات المسموح بها والمتطلبات الإقليمية السارية لدى المزوّد",- "mapMissingServiceTip": "يشير هذا العرض إلى خدمة غير موجودة. أضفها بالمعرّف نفسه لاستعادة المرجع",- "mapSettingsError": "تعذّر تحميل إعدادات الخريطة أو حفظها. يرجى المحاولة مجددًا",- "mapSettingsConflict": "تغيّرت خدمات الخرائط في مكان آخر. ألغِ هذه المسودة لإعادة التحميل قبل التحرير مجددًا",- "mapServiceIDInvalid": "استخدم معرّفًا فريدًا من 1 إلى 128 حرفًا لاتينيًا أو رقمًا أو شرطة سفلية أو شرطة، يبدأ بحرف أو رقم",- "mapServiceNameRequired": "أدخل اسم الخدمة",- "mapSaveOrCancel": "احفظ التغييرات الحالية أو ألغها أولًا",- "mapDeleteServiceTip": "هل تريد حذف هذه الخدمة؟ ستبقى العروض التي تشير إلى معرّفها غير مهيأة حتى تضيف المعرّف نفسه مجددًا أو تختار خدمة أخرى","mapView": "الخريطة","mapLocationField": "حقل الموقع",- "mapService": "خدمة الخرائط",- "mapShowRecordList": "عرض قائمة السجلات","mapSelectLocationField": "اختر حقل الموقع",- "mapSelectService": "اختر خدمة خرائط","mapMissingLocationField": "حقل الموقع المحفوظ غير متاح. اختر حقل موقع",- "mapMissingService": "لا تتوفر خدمة الخرائط المحفوظة على هذا الجهاز. أضف خدمة بالمعرّف نفسه في الإعدادات - الخريطة، أو اختر خدمة أخرى","mapPageScope": "تعرض الخريطة ${shown} سجلًا محمّلًا من أصل ${total} سجلًا تمت تصفيته",- "mapSkippedLocations": "المواقع المتخطاة: ${empty} بلا إحداثيات، و${invalid} غير صالحة، و${unknown} بنظام إحداثيات غير معروف، و${mismatch} بنظام إحداثيات غير متوافق، و${projection} بإسقاط غير مدعوم",+ "mapSkippedLocations": "المواقع المتخطاة: ${empty} بلا إحداثيات، و${invalid} غير صالحة، و${projection} بإسقاط غير مدعوم","mapNoMarkers": "لا توجد مواقع متوافقة في الصفحة المحمّلة","mapLoading": "جارٍ تحميل الخريطة...","mapLoadError": "تعذّر تحميل الخريطة. لا تزال سجلاتك متاحة","mapUnsupportedClient": "لا تتوفر بيئة معزولة للخرائط في هذا العميل. لا تزال سجلاتك متاحة","mapOffline": "الخريطة غير متصلة بالإنترنت. لا تزال سجلاتك متاحة","mapPublicFallback": "لا تُحمّل الخرائط في الصفحات المنشورة أو المحتوى المصدّر",- "mapConfigureServices": "إعداد خدمات الخرائط",- "mapFitMarkers": "ملاءمة العرض لجميع العلامات المحمّلة","mapTooManyMarkers": "تحتوي هذه الصفحة على أكثر من ${limit} موقعًا. استخدم عوامل التصفية أو قلّل حجم الصفحة لعرض الخريطة",- "defaultCoordinateSystem": "نظام الإحداثيات الافتراضي للإدخال الجديد",- "defaultCoordinateSystemTip": "ينطبق على الإدخال الجديد فقط؛ تبقى المواقع الحالية دون تغيير ولا يتم تحويل الإحداثيات","locationPasteInEditor": "أدخل خط الطول وخط العرض كلًّا على حدة في محرر الموقع وتأكّد من نظام الإحداثيات","location": "الموقع","locationName": "الاسم (اختياري)","latitude": "خط العرض","longitude": "خط الطول",- "coordinateSystem": "نظام الإحداثيات",- "coordinateSystemUnknown": "غير معروف","pasteCoordinates": "لصق الإحداثيات","coordinateOrderTip": "تُقرأ الإحداثيات بالترتيب المحدد؛ الترتيب الافتراضي هو خط الطول ثم خط العرض","invalidCoordinates": "أدخل خط عرض محدودًا من -90 إلى 90 وخط طول من -180 إلى 180، أو اترك كليهما فارغًا",- "invalidCoordinateSystem": "اختر نظام إحداثيات مدعومًا",- "coordinateSystemTip": "اختر نظام الإحداثيات المستخدم فعليًا؛ تغيير التسمية لا يحوّل الإحداثيات","pageScrollUp": "الشاشة السابقة","pageScrollDown": "الشاشة التالية","showPageScrollButtons": "إظهار أزرار التمرير بملء الشاشة",diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.jsonindex 21b4a21fa7..4936e3ab32 100644--- a/app/appearance/langs/de.json+++ b/app/appearance/langs/de.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Erkennungs-Engine","configGroupSignInTokens": "Anmeldung und Token","searchControlUnavailable": "Für die aktuelle Suchmethode nicht verfügbar",- "selectCoordinateSystem": "Koordinatensystem auswählen","coordinateOrder": "Koordinatenreihenfolge",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Karten sind bei aktivierter Umgehung der Authentifizierung nicht verfügbar. Datensätze bleiben verfügbar",- "mapSettings": "Karte",- "mapServices": "Kartendienste",- "mapServicesTip": "Dienste für dieses Gerät hinzufügen und dann in jeder Datenbank-Kartenansicht einzeln auswählen",- "mapAddService": "Dienst hinzufügen",- "mapServiceName": "Dienstname",- "mapServiceID": "Dienst-ID",- "mapServiceIDTip": "Diese ID beim Einrichten desselben Dienstes auf einem anderen Gerät beibehalten; bestehende Ansichten verweisen weiterhin darauf",- "mapProvider": "Kartenanbieter",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Sicherheitscode",- "mapCredentialsTip": "Leer lassen, um die gespeicherten Zugangsdaten beizubehalten, einen Ersatz eingeben oder sie ausdrücklich löschen",- "mapClearCredential": "Gespeicherte Zugangsdaten löschen",- "mapCredentialSaved": "Gespeichert; zum Beibehalten leer lassen",- "mapCredentialsPresent": "Die erforderlichen Konfigurationsfelder sind ausgefüllt; der Dienstzugriff wurde nicht geprüft",- "mapCredentialsMissing": "Erforderliche Zugangsdaten fehlen",- "mapNoServices": "Kein Dienst ausgewählt",- "mapRenderingTip": "Karten zeigen nur vorhandene Koordinaten an. Adresssuche, Geokodierung, Routen und automatische Koordinatenerkennung werden nicht angeboten; gespeicherte Koordinaten und ihr angegebenes Koordinatensystem bleiben unverändert",- "mapProductionTip": "Vor der Nutzung die Kontoberechtigung, Lizenzbedingungen, Kontingente, zulässigen Domains und geltenden regionalen Anforderungen des Anbieters prüfen",- "mapMissingServiceTip": "Diese Ansicht verweist auf einen fehlenden Dienst. Den Dienst mit derselben ID hinzufügen, um den Verweis wiederherzustellen",- "mapSettingsError": "Karteneinstellungen konnten nicht geladen oder gespeichert werden. Bitte erneut versuchen",- "mapSettingsConflict": "Kartendienste wurden andernorts geändert. Diesen Entwurf verwerfen, um die Daten vor dem erneuten Bearbeiten neu zu laden",- "mapServiceIDInvalid": "Eine eindeutige ID aus 1–128 Buchstaben, Ziffern, Unterstrichen oder Bindestrichen verwenden, beginnend mit einem Buchstaben oder einer Ziffer",- "mapServiceNameRequired": "Einen Dienstnamen eingeben",- "mapSaveOrCancel": "Aktuelle Änderungen zuerst speichern oder verwerfen",- "mapDeleteServiceTip": "Diesen Dienst löschen? Ansichten mit dieser ID bleiben unkonfiguriert, bis dieselbe ID erneut hinzugefügt oder ein anderer Dienst ausgewählt wird","mapView": "Karte","mapLocationField": "Standortfeld",- "mapService": "Kartendienst",- "mapShowRecordList": "Datensatzliste anzeigen","mapSelectLocationField": "Ein Standortfeld auswählen",- "mapSelectService": "Einen Kartendienst auswählen","mapMissingLocationField": "Das gespeicherte Standortfeld ist nicht verfügbar. Ein Standortfeld auswählen",- "mapMissingService": "Auf diesem Gerät fehlt der gespeicherte Kartendienst. Unter Einstellungen - Karte einen Dienst mit derselben ID hinzufügen oder einen anderen Dienst auswählen","mapPageScope": "Die Karte zeigt ${shown} geladene Datensätze von insgesamt ${total} gefilterten Datensätzen",- "mapSkippedLocations": "Übersprungene Standorte: ${empty} ohne Koordinaten, ${invalid} ungültig, ${unknown} mit unbekanntem Koordinatensystem, ${mismatch} mit inkompatiblem Koordinatensystem, ${projection} mit nicht unterstützter Projektion",+ "mapSkippedLocations": "Übersprungene Standorte: ${empty} ohne Koordinaten, ${invalid} ungültig, ${projection} mit nicht unterstützter Projektion","mapNoMarkers": "Keine kompatiblen Standorte auf der geladenen Seite","mapLoading": "Karte wird geladen...","mapLoadError": "Die Karte konnte nicht geladen werden. Ihre Datensätze sind weiterhin verfügbar","mapUnsupportedClient": "Dieser Client bietet keine isolierte Kartenumgebung. Ihre Datensätze sind weiterhin verfügbar","mapOffline": "Die Karte ist offline. Ihre Datensätze sind weiterhin verfügbar","mapPublicFallback": "In veröffentlichten Seiten oder Exporten werden keine Karten geladen",- "mapConfigureServices": "Kartendienste konfigurieren",- "mapFitMarkers": "Alle geladenen Markierungen einpassen","mapTooManyMarkers": "Diese Seite enthält mehr als ${limit} Standorte. Filter verwenden oder die Seitengröße verkleinern, um die Karte anzuzeigen",- "defaultCoordinateSystem": "Standardkoordinatensystem für neue Eingaben",- "defaultCoordinateSystemTip": "Gilt nur für neue Eingaben; vorhandene Standorte bleiben unverändert und Koordinaten werden nicht umgerechnet","locationPasteInEditor": "Längengrad und Breitengrad im Standorteditor getrennt eingeben und das Koordinatensystem überprüfen","location": "Standort","locationName": "Name (optional)","latitude": "Breitengrad","longitude": "Längengrad",- "coordinateSystem": "Koordinatensystem",- "coordinateSystemUnknown": "Unbekannt","pasteCoordinates": "Koordinaten einfügen","coordinateOrderTip": "Koordinaten werden in der ausgewählten Reihenfolge gelesen; standardmäßig gilt Längengrad, Breitengrad","invalidCoordinates": "Endlichen Breitengrad von -90 bis 90 und Längengrad von -180 bis 180 eingeben oder beide leer lassen",- "invalidCoordinateSystem": "Ein unterstütztes Koordinatensystem auswählen",- "coordinateSystemTip": "Wählen Sie das tatsächliche Koordinatensystem der Koordinaten; eine Änderung der Bezeichnung rechnet die Koordinaten nicht um","pageScrollUp": "Vorheriger Bildschirm","pageScrollDown": "Nächster Bildschirm","showPageScrollButtons": "Schaltflächen zum seitenweisen Scrollen anzeigen",diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.jsonindex 0a07693846..4b7a2e2dd6 100644--- a/app/appearance/langs/en.json+++ b/app/appearance/langs/en.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Recognition engine","configGroupSignInTokens": "Login and tokens","searchControlUnavailable": "Unavailable for the current search method",- "selectCoordinateSystem": "Select a coordinate system","coordinateOrder": "Coordinate order",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Maps are unavailable while authentication bypass is enabled. Records remain available",- "mapSettings": "Map",- "mapServices": "Map services",- "mapServicesTip": "Add services for this device, then select a service separately in each database map view",- "mapAddService": "Add service",- "mapServiceName": "Service name",- "mapServiceID": "Service ID",- "mapServiceIDTip": "Keep this ID unchanged when configuring the same service on another device; existing views will keep referencing it",- "mapProvider": "Map provider",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Security code",- "mapCredentialsTip": "Leave blank to keep the saved credential, enter a replacement, or explicitly clear it",- "mapClearCredential": "Clear saved credential",- "mapCredentialSaved": "Saved; leave blank to keep",- "mapCredentialsPresent": "Required configuration fields are present; service access has not been verified",- "mapCredentialsMissing": "Required credentials are missing",- "mapNoServices": "No service selected",- "mapRenderingTip": "Maps only display existing coordinates. Address search, geocoding, routes, and automatic coordinate detection are not provided; stored coordinates and their declared coordinate system are unchanged",- "mapProductionTip": "Before use, check the provider's account eligibility, licensing, quotas, allowed domains, and applicable regional requirements",- "mapMissingServiceTip": "This view references a missing service. Add it with this same ID to restore the reference",- "mapSettingsError": "Could not load or save map settings. Please retry",- "mapSettingsConflict": "Map services changed elsewhere. Cancel this draft to reload before editing again",- "mapServiceIDInvalid": "Use a unique ID of 1–128 letters, digits, underscores, or hyphens, starting with a letter or digit",- "mapServiceNameRequired": "Enter a service name",- "mapSaveOrCancel": "Save or cancel the current changes first",- "mapDeleteServiceTip": "Delete this service? Views referencing its ID will remain unconfigured until you add that ID again or choose another service","mapView": "Map","mapLocationField": "Location field",- "mapService": "Map service",- "mapShowRecordList": "Show record list","mapSelectLocationField": "Select a location field",- "mapSelectService": "Select a map service","mapMissingLocationField": "The saved location field is unavailable. Select a location field",- "mapMissingService": "This device does not have the saved map service. Add a service with the same ID in Settings - Map, or select another service","mapPageScope": "Map shows the ${shown} loaded records of ${total} filtered records",- "mapSkippedLocations": "Skipped locations: ${empty} missing coordinates, ${invalid} invalid, ${unknown} unknown coordinate system, ${mismatch} incompatible coordinate system, ${projection} unsupported projection",+ "mapSkippedLocations": "Skipped locations: ${empty} missing coordinates, ${invalid} invalid, ${projection} unsupported projection","mapNoMarkers": "No compatible locations on the loaded page","mapLoading": "Loading map...","mapLoadError": "The map could not load. Your records are still available","mapUnsupportedClient": "An isolated map host is not available in this client. Your records are still available","mapOffline": "Map is offline. Your records are still available","mapPublicFallback": "Maps are not loaded in published pages or exports",- "mapConfigureServices": "Configure map services",- "mapFitMarkers": "Fit all loaded markers","mapTooManyMarkers": "This page has more than ${limit} locations. Use filters or a smaller page size to display the map",- "defaultCoordinateSystem": "Default coordinate system for new input",- "defaultCoordinateSystemTip": "Applies only to new input; existing locations stay unchanged and coordinates are not converted","locationPasteInEditor": "Enter longitude and latitude separately in the location editor and confirm the coordinate system","location": "Location","locationName": "Name (optional)","latitude": "Latitude","longitude": "Longitude",- "coordinateSystem": "Coordinate system",- "coordinateSystemUnknown": "Unknown","pasteCoordinates": "Paste coordinates","coordinateOrderTip": "Coordinates are read in the selected order; longitude, latitude is the default","invalidCoordinates": "Enter a finite latitude from -90 to 90 and longitude from -180 to 180, or leave both empty",- "invalidCoordinateSystem": "Choose a supported coordinate system",- "coordinateSystemTip": "Select the coordinate system actually used by the coordinates; changing the label does not convert coordinates","pageScrollUp": "Previous screen","pageScrollDown": "Next screen","showPageScrollButtons": "Show page scroll buttons",diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.jsonindex 0a36f25c82..97ae865492 100644--- a/app/appearance/langs/es.json+++ b/app/appearance/langs/es.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Motor de reconocimiento","configGroupSignInTokens": "Inicio de sesión y tokens","searchControlUnavailable": "No disponible para el método de búsqueda actual",- "selectCoordinateSystem": "Seleccione un sistema de coordenadas","coordinateOrder": "Orden de las coordenadas",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Los mapas no están disponibles mientras esté activada la omisión de autenticación. Los registros siguen disponibles",- "mapSettings": "Mapa",- "mapServices": "Servicios de mapas",- "mapServicesTip": "Añada servicios para este dispositivo y seleccione uno por separado en cada vista de mapa de la base de datos",- "mapAddService": "Añadir servicio",- "mapServiceName": "Nombre del servicio",- "mapServiceID": "ID del servicio",- "mapServiceIDTip": "Conserve este ID al configurar el mismo servicio en otro dispositivo; las vistas existentes seguirán haciendo referencia a él",- "mapProvider": "Proveedor de mapas",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Código de seguridad",- "mapCredentialsTip": "Déjelo vacío para conservar la credencial guardada, introduzca una nueva o elimínela expresamente",- "mapClearCredential": "Eliminar la credencial guardada",- "mapCredentialSaved": "Guardada; déjelo vacío para conservarla",- "mapCredentialsPresent": "Los campos de configuración necesarios están completos; no se ha verificado el acceso al servicio",- "mapCredentialsMissing": "Faltan credenciales necesarias",- "mapNoServices": "Ningún servicio seleccionado",- "mapRenderingTip": "Los mapas solo muestran coordenadas existentes. No se ofrecen búsqueda de direcciones, geocodificación, rutas ni detección automática de coordenadas; las coordenadas guardadas y su sistema declarado no cambian",- "mapProductionTip": "Antes de usarlo, compruebe los requisitos de la cuenta, las licencias, las cuotas, los dominios permitidos y los requisitos regionales aplicables del proveedor",- "mapMissingServiceTip": "Esta vista hace referencia a un servicio que falta. Añádalo con el mismo ID para restaurar la referencia",- "mapSettingsError": "No se pudieron cargar o guardar los ajustes del mapa. Inténtelo de nuevo",- "mapSettingsConflict": "Los servicios de mapas se modificaron en otro lugar. Cancele este borrador para recargar los datos antes de volver a editarlos",- "mapServiceIDInvalid": "Use un ID único de 1 a 128 letras, dígitos, guiones bajos o guiones, que empiece por una letra o un dígito",- "mapServiceNameRequired": "Introduzca un nombre para el servicio",- "mapSaveOrCancel": "Guarde o cancele primero los cambios actuales",- "mapDeleteServiceTip": "¿Eliminar este servicio? Las vistas que hacen referencia a su ID seguirán sin configurar hasta que añada de nuevo ese ID o elija otro servicio","mapView": "Mapa","mapLocationField": "Campo de ubicación",- "mapService": "Servicio de mapas",- "mapShowRecordList": "Mostrar lista de registros","mapSelectLocationField": "Seleccione un campo de ubicación",- "mapSelectService": "Seleccione un servicio de mapas","mapMissingLocationField": "El campo de ubicación guardado no está disponible. Seleccione un campo de ubicación",- "mapMissingService": "Este dispositivo no tiene el servicio de mapas guardado. Añada un servicio con el mismo ID en Ajustes - Mapa o seleccione otro servicio","mapPageScope": "El mapa muestra ${shown} registros cargados de ${total} registros filtrados",- "mapSkippedLocations": "Ubicaciones omitidas: ${empty} sin coordenadas, ${invalid} no válidas, ${unknown} con sistema de coordenadas desconocido, ${mismatch} con sistema incompatible, ${projection} con proyección no compatible",+ "mapSkippedLocations": "Ubicaciones omitidas: ${empty} sin coordenadas, ${invalid} no válidas, ${projection} con proyección no compatible","mapNoMarkers": "No hay ubicaciones compatibles en la página cargada","mapLoading": "Cargando mapa...","mapLoadError": "No se pudo cargar el mapa. Sus registros siguen disponibles","mapUnsupportedClient": "Este cliente no dispone de un entorno de mapas aislado. Sus registros siguen disponibles","mapOffline": "El mapa está sin conexión. Sus registros siguen disponibles","mapPublicFallback": "Los mapas no se cargan en páginas publicadas ni en exportaciones",- "mapConfigureServices": "Configurar servicios de mapas",- "mapFitMarkers": "Ajustar a todos los marcadores cargados","mapTooManyMarkers": "Esta página tiene más de ${limit} ubicaciones. Use filtros o reduzca el tamaño de página para mostrar el mapa",- "defaultCoordinateSystem": "Sistema de coordenadas predeterminado para nuevas entradas",- "defaultCoordinateSystemTip": "Solo se aplica a nuevas entradas; las ubicaciones existentes no cambian y las coordenadas no se convierten","locationPasteInEditor": "Introduce la longitud y la latitud por separado en el editor de ubicación y confirma el sistema de coordenadas","location": "Ubicación","locationName": "Nombre (opcional)","latitude": "Latitud","longitude": "Longitud",- "coordinateSystem": "Sistema de coordenadas",- "coordinateSystemUnknown": "Desconocido","pasteCoordinates": "Pegar coordenadas","coordinateOrderTip": "Las coordenadas se leen en el orden seleccionado; el predeterminado es longitud, latitud","invalidCoordinates": "Introduce una latitud finita entre -90 y 90 y una longitud entre -180 y 180, o deja ambas vacías",- "invalidCoordinateSystem": "Elige un sistema de coordenadas compatible",- "coordinateSystemTip": "Seleccione el sistema que utilizan realmente las coordenadas; cambiar la etiqueta no convierte las coordenadas","pageScrollUp": "Pantalla anterior","pageScrollDown": "Pantalla siguiente","showPageScrollButtons": "Mostrar botones de desplazamiento por pantalla",diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.jsonindex cbbec0f19b..a6487cdf85 100644--- a/app/appearance/langs/fr.json+++ b/app/appearance/langs/fr.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Moteur de reconnaissance","configGroupSignInTokens": "Connexion et jetons","searchControlUnavailable": "Indisponible pour la méthode de recherche actuelle",- "selectCoordinateSystem": "Sélectionnez un système de coordonnées","coordinateOrder": "Ordre des coordonnées",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Les cartes sont indisponibles lorsque le contournement de l’authentification est activé. Les enregistrements restent disponibles",- "mapSettings": "Carte",- "mapServices": "Services cartographiques",- "mapServicesTip": "Ajoutez des services pour cet appareil, puis sélectionnez-en un séparément dans chaque vue cartographique de base de données",- "mapAddService": "Ajouter un service",- "mapServiceName": "Nom du service",- "mapServiceID": "ID du service",- "mapServiceIDTip": "Conservez cet ID lors de la configuration du même service sur un autre appareil ; les vues existantes continueront à le référencer",- "mapProvider": "Fournisseur de cartes",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Code de sécurité",- "mapCredentialsTip": "Laissez vide pour conserver l’identifiant enregistré, saisissez un remplacement ou effacez-le explicitement",- "mapClearCredential": "Effacer l’identifiant enregistré",- "mapCredentialSaved": "Enregistré ; laissez vide pour conserver",- "mapCredentialsPresent": "Les champs de configuration requis sont renseignés ; l’accès au service n’a pas été vérifié",- "mapCredentialsMissing": "Identifiants requis manquants",- "mapNoServices": "Aucun service sélectionné",- "mapRenderingTip": "Les cartes affichent uniquement les coordonnées existantes. La recherche d’adresses, le géocodage, les itinéraires et la détection automatique des coordonnées ne sont pas proposés ; les coordonnées enregistrées et leur système déclaré restent inchangés",- "mapProductionTip": "Avant utilisation, vérifiez l’éligibilité du compte, les licences, les quotas, les domaines autorisés et les exigences régionales applicables du fournisseur",- "mapMissingServiceTip": "Cette vue référence un service manquant. Ajoutez-le avec le même ID pour rétablir la référence",- "mapSettingsError": "Impossible de charger ou d’enregistrer les paramètres cartographiques. Veuillez réessayer",- "mapSettingsConflict": "Les services cartographiques ont été modifiés ailleurs. Annulez ce brouillon pour recharger les données avant de les modifier à nouveau",- "mapServiceIDInvalid": "Utilisez un ID unique de 1 à 128 lettres, chiffres, traits de soulignement ou traits d’union, commençant par une lettre ou un chiffre",- "mapServiceNameRequired": "Saisissez un nom de service",- "mapSaveOrCancel": "Enregistrez ou annulez d’abord les modifications en cours",- "mapDeleteServiceTip": "Supprimer ce service ? Les vues qui référencent son ID resteront non configurées jusqu’à ce que vous ajoutiez à nouveau cet ID ou choisissiez un autre service","mapView": "Carte","mapLocationField": "Champ de localisation",- "mapService": "Service cartographique",- "mapShowRecordList": "Afficher la liste des enregistrements","mapSelectLocationField": "Sélectionnez un champ de localisation",- "mapSelectService": "Sélectionnez un service cartographique","mapMissingLocationField": "Le champ de localisation enregistré est indisponible. Sélectionnez un champ de localisation",- "mapMissingService": "Cet appareil ne dispose pas du service cartographique enregistré. Ajoutez un service avec le même ID dans Paramètres - Carte ou sélectionnez un autre service","mapPageScope": "La carte affiche ${shown} enregistrements chargés sur ${total} enregistrements filtrés",- "mapSkippedLocations": "Localisations ignorées : ${empty} sans coordonnées, ${invalid} invalides, ${unknown} avec un système de coordonnées inconnu, ${mismatch} avec un système incompatible, ${projection} avec une projection non prise en charge",+ "mapSkippedLocations": "Localisations ignorées : ${empty} sans coordonnées, ${invalid} invalides, ${projection} avec une projection non prise en charge","mapNoMarkers": "Aucune localisation compatible sur la page chargée","mapLoading": "Chargement de la carte...","mapLoadError": "La carte n’a pas pu être chargée. Vos enregistrements restent disponibles","mapUnsupportedClient": "Ce client ne dispose pas d’un environnement cartographique isolé. Vos enregistrements restent disponibles","mapOffline": "La carte est hors ligne. Vos enregistrements restent disponibles","mapPublicFallback": "Les cartes ne sont pas chargées dans les pages publiées ni dans les exports",- "mapConfigureServices": "Configurer les services cartographiques",- "mapFitMarkers": "Ajuster à tous les repères chargés","mapTooManyMarkers": "Cette page comporte plus de ${limit} localisations. Utilisez des filtres ou réduisez la taille des pages pour afficher la carte",- "defaultCoordinateSystem": "Système de coordonnées par défaut des nouvelles saisies",- "defaultCoordinateSystemTip": "S’applique uniquement aux nouvelles saisies ; les lieux existants restent inchangés et les coordonnées ne sont pas converties","locationPasteInEditor": "Saisissez la longitude et la latitude séparément dans l’éditeur de lieu et vérifiez le système de coordonnées","location": "Lieu","locationName": "Nom (facultatif)","latitude": "Latitude","longitude": "Longitude",- "coordinateSystem": "Système de coordonnées",- "coordinateSystemUnknown": "Inconnu","pasteCoordinates": "Coller les coordonnées","coordinateOrderTip": "Les coordonnées sont lues dans l’ordre sélectionné ; longitude, latitude est l’ordre par défaut","invalidCoordinates": "Saisissez une latitude finie entre -90 et 90 et une longitude entre -180 et 180, ou laissez les deux vides",- "invalidCoordinateSystem": "Choisissez un système de coordonnées pris en charge",- "coordinateSystemTip": "Sélectionnez le système réellement utilisé par les coordonnées ; changer l’étiquette ne convertit pas les coordonnées","pageScrollUp": "Écran précédent","pageScrollDown": "Écran suivant","showPageScrollButtons": "Afficher les boutons de défilement par écran",diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.jsonindex 9d6ed36e00..8a9ab722b1 100644--- a/app/appearance/langs/he.json+++ b/app/appearance/langs/he.json@@ -3,72 +3,29 @@"configGroupOCREngine": "מנוע זיהוי","configGroupSignInTokens": "כניסה ואסימונים","searchControlUnavailable": "האפשרות אינה זמינה בשיטת החיפוש הנוכחית",- "selectCoordinateSystem": "בחרו מערכת קואורדינטות","coordinateOrder": "סדר הקואורדינטות",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "מפות אינן זמינות כאשר עקיפת האימות מופעלת. הרשומות נשארות זמינות",- "mapSettings": "מפה",- "mapServices": "שירותי מפות",- "mapServicesTip": "הוסף שירותים למכשיר זה, ואז בחר שירות בנפרד בכל תצוגת מפה של מסד הנתונים",- "mapAddService": "הוספת שירות",- "mapServiceName": "שם השירות",- "mapServiceID": "מזהה השירות",- "mapServiceIDTip": "שמור על מזהה זה בעת הגדרת אותו שירות במכשיר אחר; תצוגות קיימות ימשיכו להפנות אליו",- "mapProvider": "ספק מפות",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "קוד אבטחה",- "mapCredentialsTip": "השאר ריק כדי לשמור על פרטי האימות השמורים, הזן תחליף או מחק אותם במפורש",- "mapClearCredential": "מחיקת פרטי האימות השמורים",- "mapCredentialSaved": "נשמרו; השאר ריק כדי לשמור עליהם",- "mapCredentialsPresent": "שדות ההגדרה הנדרשים מולאו; הגישה לשירות טרם אומתה",- "mapCredentialsMissing": "חסרים פרטי אימות נדרשים",- "mapNoServices": "לא נבחר שירות",- "mapRenderingTip": "המפות מציגות רק קואורדינטות קיימות. חיפוש כתובות, קידוד גאוגרפי, מסלולים וזיהוי אוטומטי של קואורדינטות אינם זמינים; הקואורדינטות השמורות ומערכת הקואורדינטות המוצהרת שלהן נשארות ללא שינוי",- "mapProductionTip": "לפני השימוש, בדוק את זכאות החשבון, הרישיונות, המכסות, הדומיינים המורשים והדרישות האזוריות החלות של הספק",- "mapMissingServiceTip": "תצוגה זו מפנה לשירות חסר. הוסף אותו עם אותו מזהה כדי לשחזר את ההפניה",- "mapSettingsError": "לא ניתן לטעון או לשמור את הגדרות המפה. נסה שוב",- "mapSettingsConflict": "שירותי המפות השתנו במקום אחר. בטל טיוטה זו כדי לטעון מחדש לפני עריכה נוספת",- "mapServiceIDInvalid": "השתמש במזהה ייחודי באורך 1–128 אותיות לטיניות, ספרות, קווים תחתונים או מקפים, המתחיל באות או בספרה",- "mapServiceNameRequired": "הזן שם לשירות",- "mapSaveOrCancel": "שמור או בטל תחילה את השינויים הנוכחיים",- "mapDeleteServiceTip": "למחוק שירות זה? תצוגות המפנות למזהה שלו יישארו ללא הגדרה עד שתוסיף שוב את אותו מזהה או תבחר שירות אחר","mapView": "מפה","mapLocationField": "שדה מיקום",- "mapService": "שירות מפות",- "mapShowRecordList": "הצגת רשימת רשומות","mapSelectLocationField": "בחר שדה מיקום",- "mapSelectService": "בחר שירות מפות","mapMissingLocationField": "שדה המיקום השמור אינו זמין. בחר שדה מיקום",- "mapMissingService": "שירות המפות השמור אינו קיים במכשיר זה. הוסף שירות עם אותו מזהה בהגדרות - מפה, או בחר שירות אחר","mapPageScope": "המפה מציגה ${shown} רשומות שנטענו מתוך ${total} רשומות מסוננות",- "mapSkippedLocations": "מיקומים שדולגו: ${empty} ללא קואורדינטות, ${invalid} לא תקינים, ${unknown} עם מערכת קואורדינטות לא ידועה, ${mismatch} עם מערכת קואורדינטות לא תואמת, ${projection} עם היטל לא נתמך",+ "mapSkippedLocations": "מיקומים שדולגו: ${empty} ללא קואורדינטות, ${invalid} לא תקינים, ${projection} עם היטל לא נתמך","mapNoMarkers": "אין מיקומים תואמים בדף שנטען","mapLoading": "טוען מפה...","mapLoadError": "לא ניתן לטעון את המפה. הרשומות שלך עדיין זמינות","mapUnsupportedClient": "סביבת מפות מבודדת אינה זמינה בלקוח זה. הרשומות שלך עדיין זמינות","mapOffline": "המפה אינה מחוברת לרשת. הרשומות שלך עדיין זמינות","mapPublicFallback": "מפות אינן נטענות בדפים שפורסמו או בתוכן שיוצא",- "mapConfigureServices": "הגדרת שירותי מפות",- "mapFitMarkers": "התאמת התצוגה לכל הסמנים שנטענו","mapTooManyMarkers": "בדף זה יש יותר מ-${limit} מיקומים. השתמש במסננים או הקטן את גודל הדף כדי להציג את המפה",- "defaultCoordinateSystem": "מערכת קואורדינטות כברירת מחדל לקלט חדש",- "defaultCoordinateSystemTip": "חל רק על קלט חדש; מיקומים קיימים אינם משתנים והקואורדינטות אינן מומרות","locationPasteInEditor": "יש להזין את קו האורך וקו הרוחב בנפרד בעורך המיקום ולוודא שמערכת הקואורדינטות נכונה","location": "מיקום","locationName": "שם (רשות)","latitude": "קו רוחב","longitude": "קו אורך",- "coordinateSystem": "מערכת קואורדינטות",- "coordinateSystemUnknown": "לא ידועה","pasteCoordinates": "הדבקת קואורדינטות","coordinateOrderTip": "הקואורדינטות נקראות לפי הסדר שנבחר; סדר ברירת המחדל הוא קו אורך, קו רוחב","invalidCoordinates": "יש להזין קו רוחב סופי בין -90 ל-90 וקו אורך בין -180 ל-180, או להשאיר את שניהם ריקים",- "invalidCoordinateSystem": "יש לבחור מערכת קואורדינטות נתמכת",- "coordinateSystemTip": "בחרו את המערכת שבה הקואורדינטות משתמשות בפועל; שינוי התווית אינו ממיר את הקואורדינטות","pageScrollUp": "המסך הקודם","pageScrollDown": "המסך הבא","showPageScrollButtons": "הצגת כפתורי גלילה לפי מסך",diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.jsonindex 717dbb94b4..7de217054f 100644--- a/app/appearance/langs/hi.json+++ b/app/appearance/langs/hi.json@@ -3,72 +3,29 @@"configGroupOCREngine": "पहचान इंजन","configGroupSignInTokens": "लॉगिन और टोकन","searchControlUnavailable": "वर्तमान खोज विधि में यह विकल्प उपलब्ध नहीं है",- "selectCoordinateSystem": "निर्देशांक प्रणाली चुनें","coordinateOrder": "निर्देशांक क्रम",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "प्रमाणीकरण बायपास सक्षम होने पर मानचित्र उपलब्ध नहीं हैं। रिकॉर्ड उपलब्ध रहते हैं",- "mapSettings": "मानचित्र",- "mapServices": "मानचित्र सेवाएँ",- "mapServicesTip": "इस डिवाइस के लिए सेवाएँ जोड़ें, फिर हर डेटाबेस मानचित्र दृश्य में अलग से सेवा चुनें",- "mapAddService": "सेवा जोड़ें",- "mapServiceName": "सेवा का नाम",- "mapServiceID": "सेवा ID",- "mapServiceIDTip": "किसी दूसरे डिवाइस पर यही सेवा कॉन्फ़िगर करते समय यह ID न बदलें; मौजूदा दृश्य इसी का संदर्भ देते रहेंगे",- "mapProvider": "मानचित्र प्रदाता",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "सुरक्षा कोड",- "mapCredentialsTip": "सहेजे गए क्रेडेंशियल को बनाए रखने के लिए खाली छोड़ें, बदलने के लिए नया मान दर्ज करें या स्पष्ट रूप से मिटाएँ",- "mapClearCredential": "सहेजा गया क्रेडेंशियल मिटाएँ",- "mapCredentialSaved": "सहेजा गया; बनाए रखने के लिए खाली छोड़ें",- "mapCredentialsPresent": "आवश्यक कॉन्फ़िगरेशन फ़ील्ड भरे गए हैं; सेवा तक पहुँच सत्यापित नहीं की गई है",- "mapCredentialsMissing": "आवश्यक क्रेडेंशियल मौजूद नहीं हैं",- "mapNoServices": "कोई सेवा नहीं चुनी गई",- "mapRenderingTip": "मानचित्र केवल मौजूदा निर्देशांक दिखाते हैं। पता खोजना, जियोकोडिंग, मार्ग और निर्देशांकों की स्वचालित पहचान उपलब्ध नहीं हैं; सहेजे गए निर्देशांक और उनकी घोषित निर्देशांक प्रणाली अपरिवर्तित रहती है",- "mapProductionTip": "उपयोग से पहले प्रदाता की खाता पात्रता, लाइसेंस, कोटा, अनुमत डोमेन और लागू क्षेत्रीय आवश्यकताएँ जाँचें",- "mapMissingServiceTip": "यह दृश्य एक अनुपलब्ध सेवा का संदर्भ देता है। संदर्भ बहाल करने के लिए उसी ID से सेवा जोड़ें",- "mapSettingsError": "मानचित्र सेटिंग लोड या सहेजी नहीं जा सकीं। फिर से कोशिश करें",- "mapSettingsConflict": "मानचित्र सेवाएँ किसी अन्य स्थान पर बदल गई हैं। फिर से संपादित करने से पहले दोबारा लोड करने के लिए यह ड्राफ़्ट रद्द करें",- "mapServiceIDInvalid": "1–128 लैटिन अक्षरों, अंकों, अंडरस्कोर या हाइफ़न से बनी अनोखी ID उपयोग करें, जो अक्षर या अंक से शुरू हो",- "mapServiceNameRequired": "सेवा का नाम दर्ज करें",- "mapSaveOrCancel": "पहले मौजूदा बदलाव सहेजें या रद्द करें",- "mapDeleteServiceTip": "यह सेवा मिटाएँ? इसकी ID का संदर्भ देने वाले दृश्य तब तक कॉन्फ़िगर नहीं होंगे, जब तक आप वही ID दोबारा न जोड़ें या दूसरी सेवा न चुनें","mapView": "मानचित्र","mapLocationField": "स्थान फ़ील्ड",- "mapService": "मानचित्र सेवा",- "mapShowRecordList": "रिकॉर्ड सूची दिखाएँ","mapSelectLocationField": "स्थान फ़ील्ड चुनें",- "mapSelectService": "मानचित्र सेवा चुनें","mapMissingLocationField": "सहेजा गया स्थान फ़ील्ड उपलब्ध नहीं है। स्थान फ़ील्ड चुनें",- "mapMissingService": "इस डिवाइस पर सहेजी गई मानचित्र सेवा नहीं है। सेटिंग - मानचित्र में उसी ID से सेवा जोड़ें या दूसरी सेवा चुनें","mapPageScope": "मानचित्र ${total} फ़िल्टर किए गए रिकॉर्ड में से ${shown} लोड किए गए रिकॉर्ड दिखाता है",- "mapSkippedLocations": "छोड़े गए स्थान: ${empty} में निर्देशांक नहीं हैं, ${invalid} अमान्य हैं, ${unknown} की निर्देशांक प्रणाली अज्ञात है, ${mismatch} की निर्देशांक प्रणाली असंगत है, ${projection} का मानचित्र प्रक्षेपण समर्थित नहीं है",+ "mapSkippedLocations": "छोड़े गए स्थान: ${empty} में निर्देशांक नहीं हैं, ${invalid} अमान्य हैं, ${projection} का मानचित्र प्रक्षेपण समर्थित नहीं है","mapNoMarkers": "लोड किए गए पृष्ठ पर कोई संगत स्थान नहीं है","mapLoading": "मानचित्र लोड हो रहा है...","mapLoadError": "मानचित्र लोड नहीं हो सका। आपके रिकॉर्ड अभी भी उपलब्ध हैं","mapUnsupportedClient": "इस क्लाइंट में अलग-थलग मानचित्र परिवेश उपलब्ध नहीं है। आपके रिकॉर्ड अभी भी उपलब्ध हैं","mapOffline": "मानचित्र ऑफ़लाइन है। आपके रिकॉर्ड अभी भी उपलब्ध हैं","mapPublicFallback": "प्रकाशित पृष्ठों या निर्यात में मानचित्र लोड नहीं किए जाते",- "mapConfigureServices": "मानचित्र सेवाएँ कॉन्फ़िगर करें",- "mapFitMarkers": "सभी लोड किए गए मार्कर दृश्य में समाएँ","mapTooManyMarkers": "इस पृष्ठ पर ${limit} से अधिक स्थान हैं। मानचित्र दिखाने के लिए फ़िल्टर उपयोग करें या पृष्ठ का आकार कम करें",- "defaultCoordinateSystem": "नए इनपुट के लिए डिफ़ॉल्ट निर्देशांक प्रणाली",- "defaultCoordinateSystemTip": "केवल नए इनपुट पर लागू होता है; मौजूदा स्थान अपरिवर्तित रहते हैं और निर्देशांक परिवर्तित नहीं होते","locationPasteInEditor": "स्थान संपादक में देशांतर और अक्षांश अलग-अलग दर्ज करें और निर्देशांक प्रणाली की पुष्टि करें","location": "स्थान","locationName": "नाम (वैकल्पिक)","latitude": "अक्षांश","longitude": "देशांतर",- "coordinateSystem": "निर्देशांक प्रणाली",- "coordinateSystemUnknown": "अज्ञात","pasteCoordinates": "निर्देशांक पेस्ट करें","coordinateOrderTip": "निर्देशांक चुने गए क्रम में पढ़े जाते हैं; डिफ़ॉल्ट क्रम देशांतर, अक्षांश है","invalidCoordinates": "-90 से 90 तक सीमित अक्षांश और -180 से 180 तक सीमित देशांतर दर्ज करें, या दोनों खाली छोड़ें",- "invalidCoordinateSystem": "समर्थित निर्देशांक प्रणाली चुनें",- "coordinateSystemTip": "वह प्रणाली चुनें जिसका निर्देशांक वास्तव में उपयोग करते हैं; लेबल बदलने से निर्देशांक परिवर्तित नहीं होते","pageScrollUp": "पिछली स्क्रीन","pageScrollDown": "अगली स्क्रीन","showPageScrollButtons": "एक स्क्रीन स्क्रॉल करने के बटन दिखाएँ",diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.jsonindex 1ebe79f8f2..e13673ea95 100644--- a/app/appearance/langs/id.json+++ b/app/appearance/langs/id.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Mesin pengenalan","configGroupSignInTokens": "Login dan token","searchControlUnavailable": "Tidak tersedia untuk metode pencarian saat ini",- "selectCoordinateSystem": "Pilih sistem koordinat","coordinateOrder": "Urutan koordinat",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Peta tidak tersedia saat fitur melewati autentikasi diaktifkan. Rekaman tetap tersedia",- "mapSettings": "Peta",- "mapServices": "Layanan peta",- "mapServicesTip": "Tambahkan layanan untuk perangkat ini, lalu pilih layanan secara terpisah di setiap tampilan peta basis data",- "mapAddService": "Tambah layanan",- "mapServiceName": "Nama layanan",- "mapServiceID": "ID layanan",- "mapServiceIDTip": "Pertahankan ID ini saat mengonfigurasi layanan yang sama di perangkat lain; tampilan yang ada akan tetap merujuknya",- "mapProvider": "Penyedia peta",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Kode keamanan",- "mapCredentialsTip": "Biarkan kosong untuk mempertahankan kredensial tersimpan, masukkan pengganti, atau hapus secara eksplisit",- "mapClearCredential": "Hapus kredensial tersimpan",- "mapCredentialSaved": "Tersimpan; biarkan kosong untuk mempertahankan",- "mapCredentialsPresent": "Kolom konfigurasi yang diperlukan telah diisi; akses layanan belum diverifikasi",- "mapCredentialsMissing": "Kredensial yang diperlukan belum tersedia",- "mapNoServices": "Tidak ada layanan yang dipilih",- "mapRenderingTip": "Peta hanya menampilkan koordinat yang sudah ada. Pencarian alamat, geocoding, rute, dan deteksi koordinat otomatis tidak disediakan; koordinat tersimpan dan sistem koordinat yang dinyatakan tidak diubah",- "mapProductionTip": "Sebelum digunakan, periksa kelayakan akun, lisensi, kuota, domain yang diizinkan, dan persyaratan wilayah yang berlaku dari penyedia",- "mapMissingServiceTip": "Tampilan ini merujuk layanan yang tidak ada. Tambahkan layanan dengan ID yang sama untuk memulihkan rujukan",- "mapSettingsError": "Tidak dapat memuat atau menyimpan pengaturan peta. Coba lagi",- "mapSettingsConflict": "Layanan peta diubah di tempat lain. Batalkan draf ini untuk memuat ulang sebelum mengedit lagi",- "mapServiceIDInvalid": "Gunakan ID unik berisi 1–128 huruf Latin, angka, garis bawah, atau tanda hubung, diawali huruf atau angka",- "mapServiceNameRequired": "Masukkan nama layanan",- "mapSaveOrCancel": "Simpan atau batalkan perubahan saat ini terlebih dahulu",- "mapDeleteServiceTip": "Hapus layanan ini? Tampilan yang merujuk ID-nya akan tetap belum dikonfigurasi sampai Anda menambahkan kembali ID tersebut atau memilih layanan lain","mapView": "Peta","mapLocationField": "Kolom lokasi",- "mapService": "Layanan peta",- "mapShowRecordList": "Tampilkan daftar rekaman","mapSelectLocationField": "Pilih kolom lokasi",- "mapSelectService": "Pilih layanan peta","mapMissingLocationField": "Kolom lokasi yang disimpan tidak tersedia. Pilih kolom lokasi",- "mapMissingService": "Perangkat ini tidak memiliki layanan peta yang disimpan. Tambahkan layanan dengan ID yang sama di Pengaturan - Peta atau pilih layanan lain","mapPageScope": "Peta menampilkan ${shown} rekaman yang dimuat dari ${total} rekaman hasil penyaringan",- "mapSkippedLocations": "Lokasi yang dilewati: ${empty} tanpa koordinat, ${invalid} tidak valid, ${unknown} dengan sistem koordinat tidak diketahui, ${mismatch} dengan sistem koordinat tidak kompatibel, ${projection} dengan proyeksi tidak didukung",+ "mapSkippedLocations": "Lokasi yang dilewati: ${empty} tanpa koordinat, ${invalid} tidak valid, ${projection} dengan proyeksi tidak didukung","mapNoMarkers": "Tidak ada lokasi yang kompatibel pada halaman yang dimuat","mapLoading": "Memuat peta...","mapLoadError": "Peta tidak dapat dimuat. Rekaman Anda tetap tersedia","mapUnsupportedClient": "Lingkungan peta terisolasi tidak tersedia pada klien ini. Rekaman Anda tetap tersedia","mapOffline": "Peta sedang luring. Rekaman Anda tetap tersedia","mapPublicFallback": "Peta tidak dimuat pada halaman yang dipublikasikan atau hasil ekspor",- "mapConfigureServices": "Konfigurasi layanan peta",- "mapFitMarkers": "Sesuaikan tampilan dengan semua penanda yang dimuat","mapTooManyMarkers": "Halaman ini memiliki lebih dari ${limit} lokasi. Gunakan filter atau ukuran halaman yang lebih kecil untuk menampilkan peta",- "defaultCoordinateSystem": "Sistem koordinat bawaan untuk masukan baru",- "defaultCoordinateSystemTip": "Hanya berlaku untuk masukan baru; lokasi yang ada tidak berubah dan koordinat tidak dikonversi","locationPasteInEditor": "Masukkan bujur dan lintang secara terpisah di editor lokasi dan pastikan sistem koordinatnya benar","location": "Lokasi","locationName": "Nama (opsional)","latitude": "Lintang","longitude": "Bujur",- "coordinateSystem": "Sistem koordinat",- "coordinateSystemUnknown": "Tidak diketahui","pasteCoordinates": "Tempel koordinat","coordinateOrderTip": "Koordinat dibaca sesuai urutan yang dipilih; urutan bawaan adalah bujur, lintang","invalidCoordinates": "Masukkan lintang terhingga dari -90 hingga 90 dan bujur dari -180 hingga 180, atau kosongkan keduanya",- "invalidCoordinateSystem": "Pilih sistem koordinat yang didukung",- "coordinateSystemTip": "Pilih sistem yang sebenarnya digunakan oleh koordinat; mengubah label tidak mengonversi koordinat","pageScrollUp": "Layar sebelumnya","pageScrollDown": "Layar berikutnya","showPageScrollButtons": "Tampilkan tombol gulir per layar",diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.jsonindex e23c1f0e59..a31741a2fc 100644--- a/app/appearance/langs/it.json+++ b/app/appearance/langs/it.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Motore di riconoscimento","configGroupSignInTokens": "Accesso e token","searchControlUnavailable": "Non disponibile per il metodo di ricerca corrente",- "selectCoordinateSystem": "Seleziona un sistema di coordinate","coordinateOrder": "Ordine delle coordinate",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Le mappe non sono disponibili quando è attivo il bypass dell’autenticazione. I record restano disponibili",- "mapSettings": "Mappa",- "mapServices": "Servizi cartografici",- "mapServicesTip": "Aggiungi servizi per questo dispositivo, poi selezionane uno separatamente in ogni vista mappa del database",- "mapAddService": "Aggiungi servizio",- "mapServiceName": "Nome del servizio",- "mapServiceID": "ID del servizio",- "mapServiceIDTip": "Mantieni questo ID quando configuri lo stesso servizio su un altro dispositivo; le viste esistenti continueranno a farvi riferimento",- "mapProvider": "Fornitore di mappe",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Codice di sicurezza",- "mapCredentialsTip": "Lascia vuoto per mantenere la credenziale salvata, inseriscine una sostitutiva o cancellala esplicitamente",- "mapClearCredential": "Cancella la credenziale salvata",- "mapCredentialSaved": "Salvata; lascia vuoto per mantenerla",- "mapCredentialsPresent": "I campi di configurazione richiesti sono compilati; l’accesso al servizio non è stato verificato",- "mapCredentialsMissing": "Mancano le credenziali richieste",- "mapNoServices": "Nessun servizio selezionato",- "mapRenderingTip": "Le mappe mostrano solo coordinate esistenti. Non sono disponibili ricerca di indirizzi, geocodifica, percorsi o rilevamento automatico delle coordinate; le coordinate salvate e il relativo sistema dichiarato restano invariati",- "mapProductionTip": "Prima dell’uso, verifica l’idoneità dell’account, le licenze, le quote, i domini consentiti e i requisiti regionali applicabili del fornitore",- "mapMissingServiceTip": "Questa vista fa riferimento a un servizio mancante. Aggiungilo con lo stesso ID per ripristinare il riferimento",- "mapSettingsError": "Impossibile caricare o salvare le impostazioni della mappa. Riprova",- "mapSettingsConflict": "I servizi cartografici sono stati modificati altrove. Annulla questa bozza per ricaricare i dati prima di modificarli nuovamente",- "mapServiceIDInvalid": "Usa un ID univoco di 1–128 lettere, cifre, trattini bassi o trattini, che inizi con una lettera o una cifra",- "mapServiceNameRequired": "Inserisci un nome per il servizio",- "mapSaveOrCancel": "Salva o annulla prima le modifiche correnti",- "mapDeleteServiceTip": "Eliminare questo servizio? Le viste che ne usano l’ID resteranno non configurate finché non aggiungerai nuovamente lo stesso ID o sceglierai un altro servizio","mapView": "Mappa","mapLocationField": "Campo posizione",- "mapService": "Servizio cartografico",- "mapShowRecordList": "Mostra elenco dei record","mapSelectLocationField": "Seleziona un campo posizione",- "mapSelectService": "Seleziona un servizio cartografico","mapMissingLocationField": "Il campo posizione salvato non è disponibile. Seleziona un campo posizione",- "mapMissingService": "Questo dispositivo non dispone del servizio cartografico salvato. Aggiungi un servizio con lo stesso ID in Impostazioni - Mappa oppure selezionane un altro","mapPageScope": "La mappa mostra ${shown} record caricati su ${total} record filtrati",- "mapSkippedLocations": "Posizioni ignorate: ${empty} senza coordinate, ${invalid} non valide, ${unknown} con sistema di coordinate sconosciuto, ${mismatch} con sistema incompatibile, ${projection} con proiezione non supportata",+ "mapSkippedLocations": "Posizioni ignorate: ${empty} senza coordinate, ${invalid} non valide, ${projection} con proiezione non supportata","mapNoMarkers": "Nessuna posizione compatibile nella pagina caricata","mapLoading": "Caricamento della mappa...","mapLoadError": "Impossibile caricare la mappa. I tuoi record sono ancora disponibili","mapUnsupportedClient": "Questo client non dispone di un ambiente isolato per le mappe. I tuoi record sono ancora disponibili","mapOffline": "La mappa è offline. I tuoi record sono ancora disponibili","mapPublicFallback": "Le mappe non vengono caricate nelle pagine pubblicate o nelle esportazioni",- "mapConfigureServices": "Configura servizi cartografici",- "mapFitMarkers": "Inquadra tutti gli indicatori caricati","mapTooManyMarkers": "Questa pagina contiene più di ${limit} posizioni. Usa i filtri o riduci la dimensione della pagina per visualizzare la mappa",- "defaultCoordinateSystem": "Sistema di coordinate predefinito per nuovi inserimenti",- "defaultCoordinateSystemTip": "Si applica solo ai nuovi inserimenti; le posizioni esistenti restano invariate e le coordinate non vengono convertite","locationPasteInEditor": "Inserisci longitudine e latitudine separatamente nell’editor della posizione e verifica il sistema di coordinate","location": "Posizione","locationName": "Nome (facoltativo)","latitude": "Latitudine","longitude": "Longitudine",- "coordinateSystem": "Sistema di coordinate",- "coordinateSystemUnknown": "Sconosciuto","pasteCoordinates": "Incolla coordinate","coordinateOrderTip": "Le coordinate vengono lette nell’ordine selezionato; quello predefinito è longitudine, latitudine","invalidCoordinates": "Inserisci una latitudine finita da -90 a 90 e una longitudine da -180 a 180, oppure lascia entrambe vuote",- "invalidCoordinateSystem": "Scegli un sistema di coordinate supportato",- "coordinateSystemTip": "Seleziona il sistema effettivamente usato dalle coordinate; modificare l’etichetta non converte le coordinate","pageScrollUp": "Schermata precedente","pageScrollDown": "Schermata successiva","showPageScrollButtons": "Mostra i pulsanti di scorrimento per schermata",diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.jsonindex a56a2882ef..4741cc96db 100644--- a/app/appearance/langs/ja.json+++ b/app/appearance/langs/ja.json@@ -3,72 +3,29 @@"configGroupOCREngine": "認識エンジン","configGroupSignInTokens": "ログインとトークン","searchControlUnavailable": "現在の検索方法ではこの項目を利用できません",- "selectCoordinateSystem": "座標系を選択してください","coordinateOrder": "座標の順序",- "coordinateSystemWGS84": "WGS84(OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02(AMap、Tencent Maps)",- "coordinateSystemBD09": "BD-09(Baidu Maps)","mapAuthenticationBypass": "認証のバイパスが有効な間は地図を利用できません。レコードは引き続き利用できます",- "mapSettings": "地図",- "mapServices": "地図サービス",- "mapServicesTip": "このデバイスにサービスを追加し、各データベースの地図ビューで個別にサービスを選択します",- "mapAddService": "サービスを追加",- "mapServiceName": "サービス名",- "mapServiceID": "サービス ID",- "mapServiceIDTip": "別のデバイスで同じサービスを設定する際はこの ID を維持してください。既存のビューは引き続きこの ID を参照します",- "mapProvider": "地図プロバイダー",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "セキュリティコード",- "mapCredentialsTip": "空欄なら保存済みの認証情報を保持します。置き換える場合は新しい値を入力し、削除する場合は明示的に消去してください",- "mapClearCredential": "保存済みの認証情報を消去",- "mapCredentialSaved": "保存済み。保持する場合は空欄",- "mapCredentialsPresent": "必要な設定項目は入力済みです。サービスへのアクセスは未検証です",- "mapCredentialsMissing": "必要な認証情報がありません",- "mapNoServices": "サービス未選択",- "mapRenderingTip": "地図は既存の座標のみを表示します。住所検索、ジオコーディング、経路案内、座標の自動検出は提供しません。保存済みの座標と指定された座標系は変更されません",- "mapProductionTip": "利用前に、プロバイダーのアカウント利用資格、ライセンス、割り当て量、許可ドメイン、適用される地域要件を確認してください",- "mapMissingServiceTip": "このビューは存在しないサービスを参照しています。同じ ID でサービスを追加すると参照を復元できます",- "mapSettingsError": "地図設定を読み込みまたは保存できませんでした。再試行してください",- "mapSettingsConflict": "地図サービスが別の場所で変更されました。この下書きをキャンセルして再読み込みしてから、もう一度編集してください",- "mapServiceIDInvalid": "英字、数字、アンダースコア、ハイフンで構成される 1~128 文字の一意な ID を使用し、先頭を英字または数字にしてください",- "mapServiceNameRequired": "サービス名を入力してください",- "mapSaveOrCancel": "先に現在の変更を保存またはキャンセルしてください",- "mapDeleteServiceTip": "このサービスを削除しますか?その ID を参照するビューは、同じ ID を再追加するか別のサービスを選択するまで未設定のままになります","mapView": "地図","mapLocationField": "位置フィールド",- "mapService": "地図サービス",- "mapShowRecordList": "レコード一覧を表示","mapSelectLocationField": "位置フィールドを選択してください",- "mapSelectService": "地図サービスを選択してください","mapMissingLocationField": "保存された位置フィールドを利用できません。位置フィールドを選択してください",- "mapMissingService": "このデバイスには保存された地図サービスがありません。設定 - 地図で同じ ID のサービスを追加するか、別のサービスを選択してください","mapPageScope": "地図には絞り込み後の ${total} 件のうち、読み込み済みの ${shown} 件を表示しています",- "mapSkippedLocations": "スキップした位置:座標なし ${empty} 件、無効 ${invalid} 件、座標系不明 ${unknown} 件、座標系非互換 ${mismatch} 件、投影非対応 ${projection} 件",+ "mapSkippedLocations": "スキップした位置:座標なし ${empty} 件、無効 ${invalid} 件、投影非対応 ${projection} 件","mapNoMarkers": "読み込み済みのページに互換性のある位置がありません","mapLoading": "地図を読み込み中...","mapLoadError": "地図を読み込めませんでした。レコードは引き続き利用できます","mapUnsupportedClient": "このクライアントでは分離された地図実行環境を利用できません。レコードは引き続き利用できます","mapOffline": "地図はオフラインです。レコードは引き続き利用できます","mapPublicFallback": "公開ページやエクスポートでは地図を読み込みません",- "mapConfigureServices": "地図サービスを設定",- "mapFitMarkers": "読み込み済みの全マーカーを表示範囲に収める","mapTooManyMarkers": "このページには ${limit} 件を超える位置があります。フィルターを使用するか、ページあたりの件数を減らして地図を表示してください",- "defaultCoordinateSystem": "新規入力の既定の座標系",- "defaultCoordinateSystemTip": "新規入力にのみ適用されます。既存の位置は変わらず、座標も変換されません","locationPasteInEditor": "位置エディターで経度と緯度を別々に入力し、座標系を確認してください","location": "位置","locationName": "名前(任意)","latitude": "緯度","longitude": "経度",- "coordinateSystem": "座標系",- "coordinateSystemUnknown": "不明","pasteCoordinates": "座標を貼り付け","coordinateOrderTip": "座標は選択した順序で読み取られます。既定の順序は経度、緯度です","invalidCoordinates": "緯度は -90 から 90、経度は -180 から 180 の有限値を入力するか、両方を空欄にしてください",- "invalidCoordinateSystem": "対応する座標系を選択してください",- "coordinateSystemTip": "座標が実際に使用している座標系を選択してください。ラベルを変更しても座標は変換されません","pageScrollUp": "前の画面","pageScrollDown": "次の画面","showPageScrollButtons": "画面単位のスクロールボタンを表示",diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.jsonindex 87cb4f1323..02aad377db 100644--- a/app/appearance/langs/ko.json+++ b/app/appearance/langs/ko.json@@ -3,72 +3,29 @@"configGroupOCREngine": "인식 엔진","configGroupSignInTokens": "로그인과 토큰","searchControlUnavailable": "현재 검색 방식에서는 이 옵션을 사용할 수 없습니다",- "selectCoordinateSystem": "좌표계를 선택하세요","coordinateOrder": "좌표 순서",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "인증 우회가 활성화된 동안에는 지도를 사용할 수 없습니다. 레코드는 계속 사용할 수 있습니다",- "mapSettings": "지도",- "mapServices": "지도 서비스",- "mapServicesTip": "이 기기에 서비스를 추가한 다음 각 데이터베이스 지도 보기에서 서비스를 개별적으로 선택하세요",- "mapAddService": "서비스 추가",- "mapServiceName": "서비스 이름",- "mapServiceID": "서비스 ID",- "mapServiceIDTip": "다른 기기에서 같은 서비스를 설정할 때 이 ID를 유지하세요. 기존 보기는 계속 이 ID를 참조합니다",- "mapProvider": "지도 제공업체",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "보안 코드",- "mapCredentialsTip": "저장된 인증 정보를 유지하려면 비워 두고, 바꾸려면 새 값을 입력하거나 명시적으로 지우세요",- "mapClearCredential": "저장된 인증 정보 지우기",- "mapCredentialSaved": "저장됨. 유지하려면 비워 두세요",- "mapCredentialsPresent": "필수 설정 항목이 입력되었습니다. 서비스 접근 여부는 확인되지 않았습니다",- "mapCredentialsMissing": "필수 인증 정보가 없습니다",- "mapNoServices": "선택한 서비스 없음",- "mapRenderingTip": "지도는 기존 좌표만 표시합니다. 주소 검색, 지오코딩, 경로 안내 및 자동 좌표 감지는 제공되지 않으며, 저장된 좌표와 지정된 좌표계는 변경되지 않습니다",- "mapProductionTip": "사용 전에 제공업체의 계정 자격, 라이선스, 할당량, 허용 도메인 및 적용되는 지역별 요건을 확인하세요",- "mapMissingServiceTip": "이 보기는 없는 서비스를 참조합니다. 참조를 복원하려면 같은 ID로 서비스를 추가하세요",- "mapSettingsError": "지도 설정을 불러오거나 저장할 수 없습니다. 다시 시도하세요",- "mapSettingsConflict": "지도 서비스가 다른 곳에서 변경되었습니다. 이 초안을 취소하여 다시 불러온 후 편집하세요",- "mapServiceIDInvalid": "영문자, 숫자, 밑줄 또는 하이픈으로 된 1~128자의 고유 ID를 사용하고 영문자나 숫자로 시작하세요",- "mapServiceNameRequired": "서비스 이름을 입력하세요",- "mapSaveOrCancel": "먼저 현재 변경 사항을 저장하거나 취소하세요",- "mapDeleteServiceTip": "이 서비스를 삭제할까요? 해당 ID를 참조하는 보기는 같은 ID를 다시 추가하거나 다른 서비스를 선택할 때까지 설정되지 않은 상태로 유지됩니다","mapView": "지도","mapLocationField": "위치 필드",- "mapService": "지도 서비스",- "mapShowRecordList": "레코드 목록 표시","mapSelectLocationField": "위치 필드를 선택하세요",- "mapSelectService": "지도 서비스를 선택하세요","mapMissingLocationField": "저장된 위치 필드를 사용할 수 없습니다. 위치 필드를 선택하세요",- "mapMissingService": "이 기기에 저장된 지도 서비스가 없습니다. 설정 - 지도에서 같은 ID의 서비스를 추가하거나 다른 서비스를 선택하세요","mapPageScope": "지도에는 필터링된 ${total}개 레코드 중 불러온 ${shown}개가 표시됩니다",- "mapSkippedLocations": "건너뛴 위치: 좌표 없음 ${empty}개, 유효하지 않음 ${invalid}개, 알 수 없는 좌표계 ${unknown}개, 호환되지 않는 좌표계 ${mismatch}개, 지원되지 않는 투영 ${projection}개",+ "mapSkippedLocations": "건너뛴 위치: 좌표 없음 ${empty}개, 유효하지 않음 ${invalid}개, 지원되지 않는 투영 ${projection}개","mapNoMarkers": "불러온 페이지에 호환되는 위치가 없습니다","mapLoading": "지도 불러오는 중...","mapLoadError": "지도를 불러올 수 없습니다. 레코드는 계속 사용할 수 있습니다","mapUnsupportedClient": "이 클라이언트에서는 격리된 지도 실행 환경을 사용할 수 없습니다. 레코드는 계속 사용할 수 있습니다","mapOffline": "지도가 오프라인 상태입니다. 레코드는 계속 사용할 수 있습니다","mapPublicFallback": "게시된 페이지나 내보낸 콘텐츠에서는 지도를 불러오지 않습니다",- "mapConfigureServices": "지도 서비스 설정",- "mapFitMarkers": "불러온 모든 마커에 맞추기","mapTooManyMarkers": "이 페이지의 위치가 ${limit}개를 초과합니다. 지도를 표시하려면 필터를 사용하거나 페이지 크기를 줄이세요",- "defaultCoordinateSystem": "새 입력의 기본 좌표계",- "defaultCoordinateSystemTip": "새 입력에만 적용되며 기존 위치는 변경되지 않고 좌표도 변환되지 않습니다","locationPasteInEditor": "위치 편집기에서 경도와 위도를 각각 입력하고 좌표계를 확인하세요","location": "위치","locationName": "이름(선택 사항)","latitude": "위도","longitude": "경도",- "coordinateSystem": "좌표계",- "coordinateSystemUnknown": "알 수 없음","pasteCoordinates": "좌표 붙여넣기","coordinateOrderTip": "좌표는 선택한 순서로 읽으며 기본 순서는 경도, 위도입니다","invalidCoordinates": "위도는 -90~90, 경도는 -180~180 사이의 유한한 값을 입력하거나 둘 다 비워 두세요",- "invalidCoordinateSystem": "지원되는 좌표계를 선택하세요",- "coordinateSystemTip": "좌표에 실제로 사용된 좌표계를 선택하세요. 표시를 변경해도 좌표는 변환되지 않습니다","pageScrollUp": "이전 화면","pageScrollDown": "다음 화면","showPageScrollButtons": "화면 단위 스크롤 버튼 표시",diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.jsonindex aaa43d086d..413d8eb086 100644--- a/app/appearance/langs/nl.json+++ b/app/appearance/langs/nl.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Herkenning-engine","configGroupSignInTokens": "Inloggen en tokens","searchControlUnavailable": "Niet beschikbaar voor de huidige zoekmethode",- "selectCoordinateSystem": "Selecteer een coördinatenstelsel","coordinateOrder": "Coördinatenvolgorde",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Kaarten zijn niet beschikbaar wanneer het omzeilen van authenticatie is ingeschakeld. Records blijven beschikbaar",- "mapSettings": "Kaart",- "mapServices": "Kaartdiensten",- "mapServicesTip": "Voeg diensten voor dit apparaat toe en selecteer daarna in elke kaartweergave van een database afzonderlijk een dienst",- "mapAddService": "Dienst toevoegen",- "mapServiceName": "Dienstnaam",- "mapServiceID": "Dienst-ID",- "mapServiceIDTip": "Behoud deze ID bij het instellen van dezelfde dienst op een ander apparaat; bestaande weergaven blijven ernaar verwijzen",- "mapProvider": "Kaartaanbieder",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Beveiligingscode",- "mapCredentialsTip": "Laat leeg om de opgeslagen inloggegevens te behouden, voer vervangende gegevens in of wis ze expliciet",- "mapClearCredential": "Opgeslagen inloggegevens wissen",- "mapCredentialSaved": "Opgeslagen; laat leeg om te behouden",- "mapCredentialsPresent": "De vereiste configuratievelden zijn ingevuld; toegang tot de dienst is niet gecontroleerd",- "mapCredentialsMissing": "Vereiste inloggegevens ontbreken",- "mapNoServices": "Geen dienst geselecteerd",- "mapRenderingTip": "Kaarten tonen alleen bestaande coördinaten. Adreszoeken, geocodering, routes en automatische coördinatendetectie zijn niet beschikbaar; opgeslagen coördinaten en hun opgegeven coördinatenstelsel blijven ongewijzigd",- "mapProductionTip": "Controleer vóór gebruik de accountvereisten, licenties, quota, toegestane domeinen en toepasselijke regionale vereisten van de aanbieder",- "mapMissingServiceTip": "Deze weergave verwijst naar een ontbrekende dienst. Voeg deze met dezelfde ID toe om de verwijzing te herstellen",- "mapSettingsError": "Kaartinstellingen konden niet worden geladen of opgeslagen. Probeer het opnieuw",- "mapSettingsConflict": "Kaartdiensten zijn elders gewijzigd. Annuleer dit concept om de gegevens opnieuw te laden voordat u verder bewerkt",- "mapServiceIDInvalid": "Gebruik een unieke ID van 1–128 letters, cijfers, onderstrepingstekens of koppeltekens, beginnend met een letter of cijfer",- "mapServiceNameRequired": "Voer een dienstnaam in",- "mapSaveOrCancel": "Sla de huidige wijzigingen eerst op of annuleer ze",- "mapDeleteServiceTip": "Deze dienst verwijderen? Weergaven die naar deze ID verwijzen blijven ongeconfigureerd totdat u dezelfde ID opnieuw toevoegt of een andere dienst kiest","mapView": "Kaart","mapLocationField": "Locatieveld",- "mapService": "Kaartdienst",- "mapShowRecordList": "Recordlijst tonen","mapSelectLocationField": "Selecteer een locatieveld",- "mapSelectService": "Selecteer een kaartdienst","mapMissingLocationField": "Het opgeslagen locatieveld is niet beschikbaar. Selecteer een locatieveld",- "mapMissingService": "Dit apparaat heeft de opgeslagen kaartdienst niet. Voeg een dienst met dezelfde ID toe onder Instellingen - Kaart of selecteer een andere dienst","mapPageScope": "De kaart toont ${shown} geladen records van ${total} gefilterde records",- "mapSkippedLocations": "Overgeslagen locaties: ${empty} zonder coördinaten, ${invalid} ongeldig, ${unknown} met onbekend coördinatenstelsel, ${mismatch} met incompatibel coördinatenstelsel, ${projection} met niet-ondersteunde projectie",+ "mapSkippedLocations": "Overgeslagen locaties: ${empty} zonder coördinaten, ${invalid} ongeldig, ${projection} met niet-ondersteunde projectie","mapNoMarkers": "Geen compatibele locaties op de geladen pagina","mapLoading": "Kaart laden...","mapLoadError": "De kaart kon niet worden geladen. Uw records zijn nog beschikbaar","mapUnsupportedClient": "Deze client heeft geen geïsoleerde kaartomgeving. Uw records zijn nog beschikbaar","mapOffline": "De kaart is offline. Uw records zijn nog beschikbaar","mapPublicFallback": "Kaarten worden niet geladen in gepubliceerde pagina’s of exports",- "mapConfigureServices": "Kaartdiensten configureren",- "mapFitMarkers": "Alle geladen markeringen in beeld brengen","mapTooManyMarkers": "Deze pagina heeft meer dan ${limit} locaties. Gebruik filters of verklein de paginagrootte om de kaart weer te geven",- "defaultCoordinateSystem": "Standaardcoördinatenstelsel voor nieuwe invoer",- "defaultCoordinateSystemTip": "Geldt alleen voor nieuwe invoer; bestaande locaties blijven ongewijzigd en coördinaten worden niet geconverteerd","locationPasteInEditor": "Voer lengtegraad en breedtegraad afzonderlijk in de locatie-editor in en controleer het coördinatenstelsel","location": "Locatie","locationName": "Naam (optioneel)","latitude": "Breedtegraad","longitude": "Lengtegraad",- "coordinateSystem": "Coördinatenstelsel",- "coordinateSystemUnknown": "Onbekend","pasteCoordinates": "Coördinaten plakken","coordinateOrderTip": "Coördinaten worden in de gekozen volgorde gelezen; de standaardvolgorde is lengtegraad, breedtegraad","invalidCoordinates": "Voer een eindige breedtegraad van -90 tot 90 en lengtegraad van -180 tot 180 in, of laat beide leeg",- "invalidCoordinateSystem": "Kies een ondersteund coördinatenstelsel",- "coordinateSystemTip": "Selecteer het coördinatenstelsel dat de coördinaten daadwerkelijk gebruiken; het wijzigen van het label converteert de coördinaten niet","pageScrollUp": "Vorig scherm","pageScrollDown": "Volgend scherm","showPageScrollButtons": "Knoppen voor scrollen per scherm tonen",diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.jsonindex 02c5161e0a..a514677f53 100644--- a/app/appearance/langs/pl.json+++ b/app/appearance/langs/pl.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Silnik rozpoznawania","configGroupSignInTokens": "Logowanie i tokeny","searchControlUnavailable": "Niedostępne dla bieżącej metody wyszukiwania",- "selectCoordinateSystem": "Wybierz układ współrzędnych","coordinateOrder": "Kolejność współrzędnych",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Mapy są niedostępne, gdy pomijanie uwierzytelniania jest włączone. Rekordy pozostają dostępne",- "mapSettings": "Mapa",- "mapServices": "Usługi map",- "mapServicesTip": "Dodaj usługi dla tego urządzenia, a następnie wybierz usługę osobno w każdym widoku mapy bazy danych",- "mapAddService": "Dodaj usługę",- "mapServiceName": "Nazwa usługi",- "mapServiceID": "ID usługi",- "mapServiceIDTip": "Zachowaj ten ID podczas konfigurowania tej samej usługi na innym urządzeniu; istniejące widoki nadal będą się do niego odwoływać",- "mapProvider": "Dostawca map",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Kod zabezpieczający",- "mapCredentialsTip": "Pozostaw puste, aby zachować zapisane dane uwierzytelniające, wpisz nowe lub jawnie usuń zapisane",- "mapClearCredential": "Usuń zapisane dane uwierzytelniające",- "mapCredentialSaved": "Zapisano; pozostaw puste, aby zachować",- "mapCredentialsPresent": "Wymagane pola konfiguracji są wypełnione; dostęp do usługi nie został zweryfikowany",- "mapCredentialsMissing": "Brakuje wymaganych danych uwierzytelniających",- "mapNoServices": "Nie wybrano usługi",- "mapRenderingTip": "Mapy wyświetlają tylko istniejące współrzędne. Wyszukiwanie adresów, geokodowanie, trasy i automatyczne wykrywanie współrzędnych nie są dostępne; zapisane współrzędne i ich zadeklarowany układ pozostają bez zmian",- "mapProductionTip": "Przed użyciem sprawdź wymagania dotyczące konta, licencje, limity, dozwolone domeny oraz obowiązujące wymagania regionalne dostawcy",- "mapMissingServiceTip": "Ten widok odwołuje się do brakującej usługi. Dodaj ją z tym samym ID, aby przywrócić odwołanie",- "mapSettingsError": "Nie udało się wczytać lub zapisać ustawień mapy. Spróbuj ponownie",- "mapSettingsConflict": "Usługi map zmieniono w innym miejscu. Anuluj ten szkic, aby ponownie wczytać dane przed dalszą edycją",- "mapServiceIDInvalid": "Użyj unikalnego ID złożonego z 1–128 liter łacińskich, cyfr, podkreśleń lub łączników, zaczynającego się od litery lub cyfry",- "mapServiceNameRequired": "Wpisz nazwę usługi",- "mapSaveOrCancel": "Najpierw zapisz lub anuluj bieżące zmiany",- "mapDeleteServiceTip": "Usunąć tę usługę? Widoki odwołujące się do jej ID pozostaną nieskonfigurowane, dopóki nie dodasz ponownie tego ID lub nie wybierzesz innej usługi","mapView": "Mapa","mapLocationField": "Pole lokalizacji",- "mapService": "Usługa map",- "mapShowRecordList": "Pokaż listę rekordów","mapSelectLocationField": "Wybierz pole lokalizacji",- "mapSelectService": "Wybierz usługę map","mapMissingLocationField": "Zapisane pole lokalizacji jest niedostępne. Wybierz pole lokalizacji",- "mapMissingService": "Na tym urządzeniu nie ma zapisanej usługi map. Dodaj usługę z tym samym ID w Ustawienia - Mapa lub wybierz inną usługę","mapPageScope": "Mapa pokazuje ${shown} wczytanych rekordów z ${total} przefiltrowanych",- "mapSkippedLocations": "Pominięte lokalizacje: ${empty} bez współrzędnych, ${invalid} nieprawidłowych, ${unknown} z nieznanym układem współrzędnych, ${mismatch} z niezgodnym układem współrzędnych, ${projection} z nieobsługiwanym odwzorowaniem",+ "mapSkippedLocations": "Pominięte lokalizacje: ${empty} bez współrzędnych, ${invalid} nieprawidłowych, ${projection} z nieobsługiwanym odwzorowaniem","mapNoMarkers": "Brak zgodnych lokalizacji na wczytanej stronie","mapLoading": "Wczytywanie mapy...","mapLoadError": "Nie udało się wczytać mapy. Twoje rekordy są nadal dostępne","mapUnsupportedClient": "Ten klient nie udostępnia izolowanego środowiska map. Twoje rekordy są nadal dostępne","mapOffline": "Mapa jest offline. Twoje rekordy są nadal dostępne","mapPublicFallback": "Mapy nie są wczytywane na opublikowanych stronach ani w eksportach",- "mapConfigureServices": "Konfiguruj usługi map",- "mapFitMarkers": "Dopasuj do wszystkich wczytanych znaczników","mapTooManyMarkers": "Ta strona zawiera więcej niż ${limit} lokalizacji. Użyj filtrów lub zmniejsz rozmiar strony, aby wyświetlić mapę",- "defaultCoordinateSystem": "Domyślny układ współrzędnych dla nowych wpisów",- "defaultCoordinateSystemTip": "Dotyczy tylko nowych wpisów; istniejące lokalizacje pozostają bez zmian, a współrzędne nie są przeliczane","locationPasteInEditor": "Wprowadź długość i szerokość geograficzną osobno w edytorze lokalizacji i sprawdź układ współrzędnych","location": "Lokalizacja","locationName": "Nazwa (opcjonalna)","latitude": "Szerokość geograficzna","longitude": "Długość geograficzna",- "coordinateSystem": "Układ współrzędnych",- "coordinateSystemUnknown": "Nieznany","pasteCoordinates": "Wklej współrzędne","coordinateOrderTip": "Współrzędne są odczytywane w wybranej kolejności; domyślna to długość, szerokość geograficzna","invalidCoordinates": "Podaj skończoną szerokość od -90 do 90 i długość od -180 do 180 lub pozostaw oba pola puste",- "invalidCoordinateSystem": "Wybierz obsługiwany układ współrzędnych",- "coordinateSystemTip": "Wybierz układ rzeczywiście używany przez współrzędne; zmiana etykiety nie przelicza współrzędnych","pageScrollUp": "Poprzedni ekran","pageScrollDown": "Następny ekran","showPageScrollButtons": "Pokaż przyciski przewijania o jeden ekran",diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.jsonindex 91d2795400..05797cb5d4 100644--- a/app/appearance/langs/pt-BR.json+++ b/app/appearance/langs/pt-BR.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Mecanismo de reconhecimento","configGroupSignInTokens": "Login e tokens","searchControlUnavailable": "Indisponível para o método de pesquisa atual",- "selectCoordinateSystem": "Selecione um sistema de coordenadas","coordinateOrder": "Ordem das coordenadas",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Os mapas ficam indisponíveis enquanto a opção de ignorar a autenticação está ativada. Os registros continuam disponíveis",- "mapSettings": "Mapa",- "mapServices": "Serviços de mapas",- "mapServicesTip": "Adicione serviços para este dispositivo e selecione um separadamente em cada visualização de mapa do banco de dados",- "mapAddService": "Adicionar serviço",- "mapServiceName": "Nome do serviço",- "mapServiceID": "ID do serviço",- "mapServiceIDTip": "Mantenha este ID ao configurar o mesmo serviço em outro dispositivo; as visualizações existentes continuarão a fazer referência a ele",- "mapProvider": "Provedor de mapas",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Código de segurança",- "mapCredentialsTip": "Deixe em branco para manter a credencial salva, digite uma substituta ou limpe-a explicitamente",- "mapClearCredential": "Limpar credencial salva",- "mapCredentialSaved": "Salva; deixe em branco para manter",- "mapCredentialsPresent": "Os campos de configuração obrigatórios estão preenchidos; o acesso ao serviço não foi verificado",- "mapCredentialsMissing": "Faltam credenciais obrigatórias",- "mapNoServices": "Nenhum serviço selecionado",- "mapRenderingTip": "Os mapas exibem apenas coordenadas existentes. Não há busca de endereços, geocodificação, rotas ou detecção automática de coordenadas; as coordenadas salvas e seu sistema declarado permanecem inalterados",- "mapProductionTip": "Antes de usar, confira a elegibilidade da conta, as licenças, as cotas, os domínios permitidos e os requisitos regionais aplicáveis do provedor",- "mapMissingServiceTip": "Esta visualização faz referência a um serviço ausente. Adicione-o com o mesmo ID para restaurar a referência",- "mapSettingsError": "Não foi possível carregar ou salvar as configurações do mapa. Tente novamente",- "mapSettingsConflict": "Os serviços de mapas foram alterados em outro lugar. Cancele este rascunho para recarregar os dados antes de editar novamente",- "mapServiceIDInvalid": "Use um ID exclusivo de 1 a 128 letras, dígitos, sublinhados ou hifens, começando com uma letra ou um dígito",- "mapServiceNameRequired": "Digite um nome para o serviço",- "mapSaveOrCancel": "Salve ou cancele as alterações atuais primeiro",- "mapDeleteServiceTip": "Excluir este serviço? As visualizações que fazem referência ao ID dele permanecerão sem configuração até que você adicione esse ID novamente ou escolha outro serviço","mapView": "Mapa","mapLocationField": "Campo de localização",- "mapService": "Serviço de mapas",- "mapShowRecordList": "Mostrar lista de registros","mapSelectLocationField": "Selecione um campo de localização",- "mapSelectService": "Selecione um serviço de mapas","mapMissingLocationField": "O campo de localização salvo não está disponível. Selecione um campo de localização",- "mapMissingService": "Este dispositivo não tem o serviço de mapas salvo. Adicione um serviço com o mesmo ID em Configurações - Mapa ou selecione outro serviço","mapPageScope": "O mapa mostra ${shown} registros carregados de ${total} registros filtrados",- "mapSkippedLocations": "Localizações ignoradas: ${empty} sem coordenadas, ${invalid} inválidas, ${unknown} com sistema de coordenadas desconhecido, ${mismatch} com sistema incompatível, ${projection} com projeção não compatível",+ "mapSkippedLocations": "Localizações ignoradas: ${empty} sem coordenadas, ${invalid} inválidas, ${projection} com projeção não compatível","mapNoMarkers": "Nenhuma localização compatível na página carregada","mapLoading": "Carregando mapa...","mapLoadError": "Não foi possível carregar o mapa. Seus registros continuam disponíveis","mapUnsupportedClient": "Este cliente não dispõe de um ambiente isolado para mapas. Seus registros continuam disponíveis","mapOffline": "O mapa está offline. Seus registros continuam disponíveis","mapPublicFallback": "Os mapas não são carregados em páginas publicadas nem em exportações",- "mapConfigureServices": "Configurar serviços de mapas",- "mapFitMarkers": "Ajustar a todos os marcadores carregados","mapTooManyMarkers": "Esta página tem mais de ${limit} localizações. Use filtros ou reduza o tamanho da página para exibir o mapa",- "defaultCoordinateSystem": "Sistema de coordenadas padrão para novas entradas",- "defaultCoordinateSystemTip": "Aplica-se apenas a novas entradas; as localizações existentes não mudam e as coordenadas não são convertidas","locationPasteInEditor": "Insira a longitude e a latitude separadamente no editor de localização e confirme o sistema de coordenadas","location": "Localização","locationName": "Nome (opcional)","latitude": "Latitude","longitude": "Longitude",- "coordinateSystem": "Sistema de coordenadas",- "coordinateSystemUnknown": "Desconhecido","pasteCoordinates": "Colar coordenadas","coordinateOrderTip": "As coordenadas são lidas na ordem selecionada; longitude, latitude é a ordem padrão","invalidCoordinates": "Insira uma latitude finita de -90 a 90 e uma longitude de -180 a 180, ou deixe ambas vazias",- "invalidCoordinateSystem": "Escolha um sistema de coordenadas compatível",- "coordinateSystemTip": "Selecione o sistema realmente usado pelas coordenadas; alterar o rótulo não converte as coordenadas","pageScrollUp": "Tela anterior","pageScrollDown": "Próxima tela","showPageScrollButtons": "Mostrar botões de rolagem por tela",diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.jsonindex 70376c6416..a06d27ce16 100644--- a/app/appearance/langs/ru.json+++ b/app/appearance/langs/ru.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Движок распознавания","configGroupSignInTokens": "Вход и токены","searchControlUnavailable": "Недоступно для текущего метода поиска",- "selectCoordinateSystem": "Выберите систему координат","coordinateOrder": "Порядок координат",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Карты недоступны, пока включён обход аутентификации. Записи остаются доступными",- "mapSettings": "Карта",- "mapServices": "Картографические сервисы",- "mapServicesTip": "Добавьте сервисы для этого устройства, затем отдельно выберите сервис в каждом представлении карты базы данных",- "mapAddService": "Добавить сервис",- "mapServiceName": "Название сервиса",- "mapServiceID": "ID сервиса",- "mapServiceIDTip": "Сохраните этот ID при настройке того же сервиса на другом устройстве; существующие представления продолжат на него ссылаться",- "mapProvider": "Поставщик карт",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Код безопасности",- "mapCredentialsTip": "Оставьте поле пустым, чтобы сохранить учётные данные, введите замену или явно удалите их",- "mapClearCredential": "Удалить сохранённые учётные данные",- "mapCredentialSaved": "Сохранено; оставьте пустым для сохранения",- "mapCredentialsPresent": "Обязательные поля настройки заполнены; доступ к сервису не проверен",- "mapCredentialsMissing": "Отсутствуют обязательные учётные данные",- "mapNoServices": "Сервис не выбран",- "mapRenderingTip": "Карты показывают только существующие координаты. Поиск адресов, геокодирование, маршруты и автоматическое определение координат не предоставляются; сохранённые координаты и указанная для них система координат не меняются",- "mapProductionTip": "Перед использованием проверьте требования к аккаунту, лицензии, квоты, разрешённые домены и применимые региональные требования поставщика",- "mapMissingServiceTip": "Это представление ссылается на отсутствующий сервис. Добавьте его с тем же ID, чтобы восстановить ссылку",- "mapSettingsError": "Не удалось загрузить или сохранить настройки карты. Повторите попытку",- "mapSettingsConflict": "Картографические сервисы изменены в другом месте. Отмените этот черновик, чтобы обновить данные перед повторным редактированием",- "mapServiceIDInvalid": "Используйте уникальный ID из 1–128 латинских букв, цифр, подчёркиваний или дефисов, начиная с буквы или цифры",- "mapServiceNameRequired": "Введите название сервиса",- "mapSaveOrCancel": "Сначала сохраните или отмените текущие изменения",- "mapDeleteServiceTip": "Удалить этот сервис? Представления, ссылающиеся на его ID, останутся ненастроенными, пока вы не добавите тот же ID снова или не выберете другой сервис","mapView": "Карта","mapLocationField": "Поле местоположения",- "mapService": "Картографический сервис",- "mapShowRecordList": "Показать список записей","mapSelectLocationField": "Выберите поле местоположения",- "mapSelectService": "Выберите картографический сервис","mapMissingLocationField": "Сохранённое поле местоположения недоступно. Выберите поле местоположения",- "mapMissingService": "На этом устройстве нет сохранённого картографического сервиса. Добавьте сервис с тем же ID в Настройки - Карта или выберите другой сервис","mapPageScope": "На карте показаны ${shown} загруженных записей из ${total} отфильтрованных",- "mapSkippedLocations": "Пропущенные местоположения: ${empty} без координат, ${invalid} некорректных, ${unknown} с неизвестной системой координат, ${mismatch} с несовместимой системой координат, ${projection} с неподдерживаемой проекцией",+ "mapSkippedLocations": "Пропущенные местоположения: ${empty} без координат, ${invalid} некорректных, ${projection} с неподдерживаемой проекцией","mapNoMarkers": "На загруженной странице нет совместимых местоположений","mapLoading": "Загрузка карты...","mapLoadError": "Не удалось загрузить карту. Ваши записи по-прежнему доступны","mapUnsupportedClient": "В этом клиенте нет изолированной среды для карт. Ваши записи по-прежнему доступны","mapOffline": "Карта недоступна без сети. Ваши записи по-прежнему доступны","mapPublicFallback": "Карты не загружаются на опубликованных страницах и в экспортированных материалах",- "mapConfigureServices": "Настроить картографические сервисы",- "mapFitMarkers": "Показать все загруженные маркеры","mapTooManyMarkers": "На этой странице больше ${limit} местоположений. Используйте фильтры или уменьшите размер страницы, чтобы отобразить карту",- "defaultCoordinateSystem": "Система координат по умолчанию для новых данных",- "defaultCoordinateSystemTip": "Применяется только к новым данным; существующие местоположения не меняются, координаты не преобразуются","locationPasteInEditor": "Введите долготу и широту отдельно в редакторе местоположения и проверьте систему координат","location": "Местоположение","locationName": "Название (необязательно)","latitude": "Широта","longitude": "Долгота",- "coordinateSystem": "Система координат",- "coordinateSystemUnknown": "Неизвестна","pasteCoordinates": "Вставить координаты","coordinateOrderTip": "Координаты считываются в выбранном порядке; по умолчанию — долгота, широта","invalidCoordinates": "Введите конечную широту от -90 до 90 и долготу от -180 до 180 или оставьте оба поля пустыми",- "invalidCoordinateSystem": "Выберите поддерживаемую систему координат",- "coordinateSystemTip": "Выберите систему, в которой фактически заданы координаты; изменение метки не преобразует координаты","pageScrollUp": "Предыдущий экран","pageScrollDown": "Следующий экран","showPageScrollButtons": "Показывать кнопки прокрутки на один экран",diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.jsonindex 2f8a419601..ec4e26548e 100644--- a/app/appearance/langs/sk.json+++ b/app/appearance/langs/sk.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Mechanizmus rozpoznávania","configGroupSignInTokens": "Prihlásenie a tokeny","searchControlUnavailable": "Nie je dostupné pre aktuálnu metódu vyhľadávania",- "selectCoordinateSystem": "Vyberte súradnicový systém","coordinateOrder": "Poradie súradníc",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Mapy nie sú dostupné, keď je zapnuté obchádzanie overenia totožnosti. Záznamy zostávajú dostupné",- "mapSettings": "Mapa",- "mapServices": "Mapové služby",- "mapServicesTip": "Pridajte služby pre toto zariadenie a potom vyberte službu samostatne v každom mapovom zobrazení databázy",- "mapAddService": "Pridať službu",- "mapServiceName": "Názov služby",- "mapServiceID": "ID služby",- "mapServiceIDTip": "Pri nastavovaní tej istej služby na inom zariadení zachovajte toto ID; existujúce zobrazenia naň budú naďalej odkazovať",- "mapProvider": "Poskytovateľ máp",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Bezpečnostný kód",- "mapCredentialsTip": "Nechajte prázdne na zachovanie uložených prihlasovacích údajov, zadajte náhradu alebo ich výslovne vymažte",- "mapClearCredential": "Vymazať uložené prihlasovacie údaje",- "mapCredentialSaved": "Uložené; na zachovanie nechajte prázdne",- "mapCredentialsPresent": "Požadované konfiguračné polia sú vyplnené; prístup k službe nebol overený",- "mapCredentialsMissing": "Chýbajú požadované prihlasovacie údaje",- "mapNoServices": "Nie je vybraná žiadna služba",- "mapRenderingTip": "Mapy zobrazujú iba existujúce súradnice. Vyhľadávanie adries, geokódovanie, trasy ani automatické zisťovanie súradníc nie sú dostupné; uložené súradnice a ich uvedený súradnicový systém zostávajú nezmenené",- "mapProductionTip": "Pred použitím overte oprávnenosť účtu, licencie, kvóty, povolené domény a príslušné regionálne požiadavky poskytovateľa",- "mapMissingServiceTip": "Toto zobrazenie odkazuje na chýbajúcu službu. Pridajte ju s rovnakým ID, aby sa odkaz obnovil",- "mapSettingsError": "Nastavenia mapy sa nepodarilo načítať alebo uložiť. Skúste to znova",- "mapSettingsConflict": "Mapové služby boli zmenené inde. Zrušte tento koncept, aby sa údaje pred ďalšou úpravou znovu načítali",- "mapServiceIDInvalid": "Použite jedinečné ID s 1–128 latinskými písmenami, číslicami, podčiarkovníkmi alebo spojovníkmi, začínajúce písmenom alebo číslicou",- "mapServiceNameRequired": "Zadajte názov služby",- "mapSaveOrCancel": "Najprv uložte alebo zrušte aktuálne zmeny",- "mapDeleteServiceTip": "Odstrániť túto službu? Zobrazenia odkazujúce na jej ID zostanú nenastavené, kým znova nepridáte toto ID alebo nevyberiete inú službu","mapView": "Mapa","mapLocationField": "Pole polohy",- "mapService": "Mapová služba",- "mapShowRecordList": "Zobraziť zoznam záznamov","mapSelectLocationField": "Vyberte pole polohy",- "mapSelectService": "Vyberte mapovú službu","mapMissingLocationField": "Uložené pole polohy nie je dostupné. Vyberte pole polohy",- "mapMissingService": "Toto zariadenie nemá uloženú mapovú službu. Pridajte službu s rovnakým ID v Nastavenia - Mapa alebo vyberte inú službu","mapPageScope": "Mapa zobrazuje ${shown} načítaných záznamov z ${total} filtrovaných záznamov",- "mapSkippedLocations": "Vynechané polohy: ${empty} bez súradníc, ${invalid} neplatných, ${unknown} s neznámym súradnicovým systémom, ${mismatch} s nekompatibilným súradnicovým systémom, ${projection} s nepodporovanou projekciou",+ "mapSkippedLocations": "Vynechané polohy: ${empty} bez súradníc, ${invalid} neplatných, ${projection} s nepodporovanou projekciou","mapNoMarkers": "Na načítanej stránke nie sú kompatibilné polohy","mapLoading": "Načítava sa mapa...","mapLoadError": "Mapu sa nepodarilo načítať. Vaše záznamy sú naďalej dostupné","mapUnsupportedClient": "V tomto klientovi nie je dostupné izolované mapové prostredie. Vaše záznamy sú naďalej dostupné","mapOffline": "Mapa je offline. Vaše záznamy sú naďalej dostupné","mapPublicFallback": "Mapy sa nenačítavajú na publikovaných stránkach ani v exportoch",- "mapConfigureServices": "Nastaviť mapové služby",- "mapFitMarkers": "Zobraziť všetky načítané značky","mapTooManyMarkers": "Táto stránka obsahuje viac ako ${limit} polôh. Na zobrazenie mapy použite filtre alebo menšiu veľkosť stránky",- "defaultCoordinateSystem": "Predvolený súradnicový systém pre nové údaje",- "defaultCoordinateSystemTip": "Platí iba pre nové údaje; existujúce polohy zostanú nezmenené a súradnice sa neprepočítajú","locationPasteInEditor": "Zemepisnú dĺžku a zemepisnú šírku zadajte v editore polohy samostatne a overte súradnicový systém","location": "Poloha","locationName": "Názov (voliteľný)","latitude": "Zemepisná šírka","longitude": "Zemepisná dĺžka",- "coordinateSystem": "Súradnicový systém",- "coordinateSystemUnknown": "Neznámy","pasteCoordinates": "Vložiť súradnice","coordinateOrderTip": "Súradnice sa čítajú vo vybranom poradí; predvolené poradie je dĺžka, šírka","invalidCoordinates": "Zadajte konečnú šírku od -90 do 90 a dĺžku od -180 do 180 alebo nechajte obe polia prázdne",- "invalidCoordinateSystem": "Vyberte podporovaný súradnicový systém",- "coordinateSystemTip": "Vyberte súradnicový systém, ktorý súradnice skutočne používajú; zmena označenia neprepočíta súradnice","pageScrollUp": "Predchádzajúca obrazovka","pageScrollDown": "Nasledujúca obrazovka","showPageScrollButtons": "Zobraziť tlačidlá posúvania o jednu obrazovku",diff --git a/app/appearance/langs/sr.json b/app/appearance/langs/sr.jsonindex 3d93e506dc..06dc723a09 100644--- a/app/appearance/langs/sr.json+++ b/app/appearance/langs/sr.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Mehanizam prepoznavanja","configGroupSignInTokens": "Prijava i tokeni","searchControlUnavailable": "Није доступно за тренутни начин претраге",- "selectCoordinateSystem": "Изаберите координатни систем","coordinateOrder": "Редослед координата",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Мапе нису доступне док је укључено заобилажење аутентификације. Записи остају доступни",- "mapSettings": "Мапа",- "mapServices": "Услуге мапа",- "mapServicesTip": "Додајте услуге за овај уређај, а затим засебно изаберите услугу у сваком приказу мапе базе података",- "mapAddService": "Додај услугу",- "mapServiceName": "Назив услуге",- "mapServiceID": "ID услуге",- "mapServiceIDTip": "Задржите овај ID при подешавању исте услуге на другом уређају; постојећи прикази ће и даље упућивати на њега",- "mapProvider": "Добављач мапа",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Безбедносни код",- "mapCredentialsTip": "Оставите празно да бисте задржали сачуване приступне податке, унесите замену или их изричито обришите",- "mapClearCredential": "Обриши сачуване приступне податке",- "mapCredentialSaved": "Сачувано; оставите празно да задржите",- "mapCredentialsPresent": "Обавезна поља подешавања су попуњена; приступ услузи није проверен",- "mapCredentialsMissing": "Недостају обавезни приступни подаци",- "mapNoServices": "Ниједна услуга није изабрана",- "mapRenderingTip": "Мапе приказују само постојеће координате. Претрага адреса, геокодирање, руте и аутоматско откривање координата нису доступни; сачуване координате и њихов наведени координатни систем остају непромењени",- "mapProductionTip": "Пре употребе проверите услове за налог, лиценце, квоте, дозвољене домене и важеће регионалне захтеве добављача",- "mapMissingServiceTip": "Овај приказ упућује на услугу која недостаје. Додајте је са истим ID-ом да бисте обновили везу",- "mapSettingsError": "Није могуће учитати или сачувати подешавања мапе. Покушајте поново",- "mapSettingsConflict": "Услуге мапа су промењене на другом месту. Откажите овај нацрт да бисте поново учитали податке пре новог уређивања",- "mapServiceIDInvalid": "Користите јединствени ID од 1–128 латиничних слова, цифара, доњих црта или цртица, који почиње словом или цифром",- "mapServiceNameRequired": "Унесите назив услуге",- "mapSaveOrCancel": "Прво сачувајте или откажите тренутне измене",- "mapDeleteServiceTip": "Обрисати ову услугу? Прикази који упућују на њен ID остаће неподешени док поново не додате тај ID или не изаберете другу услугу","mapView": "Мапа","mapLocationField": "Поље локације",- "mapService": "Услуга мапа",- "mapShowRecordList": "Прикажи списак записа","mapSelectLocationField": "Изаберите поље локације",- "mapSelectService": "Изаберите услугу мапа","mapMissingLocationField": "Сачувано поље локације није доступно. Изаберите поље локације",- "mapMissingService": "Овај уређај нема сачувану услугу мапа. Додајте услугу са истим ID-ом у Подешавања - Мапа или изаберите другу услугу","mapPageScope": "Мапа приказује ${shown} учитаних записа од ${total} филтрираних записа",- "mapSkippedLocations": "Прескочене локације: ${empty} без координата, ${invalid} неисправних, ${unknown} са непознатим координатним системом, ${mismatch} са некомпатибилним координатним системом, ${projection} са неподржаном пројекцијом",+ "mapSkippedLocations": "Прескочене локације: ${empty} без координата, ${invalid} неисправних, ${projection} са неподржаном пројекцијом","mapNoMarkers": "Нема компатибилних локација на учитаној страници","mapLoading": "Учитавање мапе...","mapLoadError": "Мапа није могла да се учита. Ваши записи су и даље доступни","mapUnsupportedClient": "Овај клијент нема изоловано окружење за мапе. Ваши записи су и даље доступни","mapOffline": "Мапа је ван мреже. Ваши записи су и даље доступни","mapPublicFallback": "Мапе се не учитавају на објављеним страницама ни у извезеним садржајима",- "mapConfigureServices": "Подеси услуге мапа",- "mapFitMarkers": "Прикажи све учитане ознаке","mapTooManyMarkers": "Ова страница има више од ${limit} локација. Користите филтере или смањите величину странице да бисте приказали мапу",- "defaultCoordinateSystem": "Подразумевани координатни систем за нове уносе",- "defaultCoordinateSystemTip": "Примењује се само на нове уносе; постојеће локације остају непромењене, а координате се не претварају","locationPasteInEditor": "Унесите географску дужину и географску ширину засебно у уређивачу локације и проверите координатни систем","location": "Локација","locationName": "Назив (опционо)","latitude": "Географска ширина","longitude": "Географска дужина",- "coordinateSystem": "Координатни систем",- "coordinateSystemUnknown": "Непознат","pasteCoordinates": "Налепи координате","coordinateOrderTip": "Координате се читају изабраним редоследом; подразумевани редослед је дужина, ширина","invalidCoordinates": "Унесите коначну ширину од -90 до 90 и дужину од -180 до 180 или оставите оба поља празна",- "invalidCoordinateSystem": "Изаберите подржани координатни систем",- "coordinateSystemTip": "Изаберите систем који координате заиста користе; промена ознаке не претвара координате","pageScrollUp": "Претходни екран","pageScrollDown": "Следећи екран","showPageScrollButtons": "Прикажи дугмад за померање за један екран",diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.jsonindex 3f6444b015..914dfefe9b 100644--- a/app/appearance/langs/th.json+++ b/app/appearance/langs/th.json@@ -3,72 +3,29 @@"configGroupOCREngine": "กลไกการรู้จำ","configGroupSignInTokens": "เข้าสู่ระบบและโทเค็น","searchControlUnavailable": "ตัวเลือกนี้ไม่พร้อมใช้งานสำหรับวิธีค้นหาปัจจุบัน",- "selectCoordinateSystem": "โปรดเลือกระบบพิกัด","coordinateOrder": "ลำดับพิกัด",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "แผนที่ไม่พร้อมใช้งานขณะเปิดใช้การข้ามการยืนยันตัวตน ระเบียนยังคงพร้อมใช้งาน",- "mapSettings": "แผนที่",- "mapServices": "บริการแผนที่",- "mapServicesTip": "เพิ่มบริการสำหรับอุปกรณ์นี้ แล้วเลือกบริการแยกกันในแต่ละมุมมองแผนที่ของฐานข้อมูล",- "mapAddService": "เพิ่มบริการ",- "mapServiceName": "ชื่อบริการ",- "mapServiceID": "ID บริการ",- "mapServiceIDTip": "ใช้ ID นี้เหมือนเดิมเมื่อตั้งค่าบริการเดียวกันบนอุปกรณ์อื่น มุมมองที่มีอยู่จะยังคงอ้างอิง ID นี้",- "mapProvider": "ผู้ให้บริการแผนที่",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "รหัสความปลอดภัย",- "mapCredentialsTip": "เว้นว่างเพื่อเก็บข้อมูลรับรองที่บันทึกไว้ ป้อนค่าใหม่เพื่อแทนที่ หรือเลือกล้างอย่างชัดเจน",- "mapClearCredential": "ล้างข้อมูลรับรองที่บันทึกไว้",- "mapCredentialSaved": "บันทึกแล้ว เว้นว่างเพื่อเก็บไว้",- "mapCredentialsPresent": "กรอกช่องการตั้งค่าที่จำเป็นแล้ว แต่ยังไม่ได้ตรวจสอบการเข้าถึงบริการ",- "mapCredentialsMissing": "ไม่มีข้อมูลรับรองที่จำเป็น",- "mapNoServices": "ยังไม่ได้เลือกบริการ",- "mapRenderingTip": "แผนที่แสดงเฉพาะพิกัดที่มีอยู่แล้ว ไม่ให้บริการค้นหาที่อยู่ แปลงที่อยู่เป็นพิกัด เส้นทาง หรือการตรวจหาพิกัดอัตโนมัติ พิกัดที่บันทึกไว้และระบบพิกัดที่ระบุจะไม่เปลี่ยนแปลง",- "mapProductionTip": "ก่อนใช้งาน โปรดตรวจสอบคุณสมบัติของบัญชี ใบอนุญาต โควตา โดเมนที่อนุญาต และข้อกำหนดของภูมิภาคที่เกี่ยวข้องของผู้ให้บริการ",- "mapMissingServiceTip": "มุมมองนี้อ้างอิงบริการที่ไม่มีอยู่ เพิ่มบริการด้วย ID เดิมเพื่อกู้คืนการอ้างอิง",- "mapSettingsError": "ไม่สามารถโหลดหรือบันทึกการตั้งค่าแผนที่ได้ โปรดลองอีกครั้ง",- "mapSettingsConflict": "บริการแผนที่ถูกเปลี่ยนแปลงจากที่อื่น ยกเลิกฉบับร่างนี้เพื่อโหลดใหม่ก่อนแก้ไขอีกครั้ง",- "mapServiceIDInvalid": "ใช้ ID ที่ไม่ซ้ำกัน ยาว 1–128 ตัว ประกอบด้วยอักษรละติน ตัวเลข ขีดล่าง หรือขีดกลาง และขึ้นต้นด้วยอักษรหรือตัวเลข",- "mapServiceNameRequired": "ป้อนชื่อบริการ",- "mapSaveOrCancel": "บันทึกหรือยกเลิกการเปลี่ยนแปลงปัจจุบันก่อน",- "mapDeleteServiceTip": "ลบบริการนี้หรือไม่? มุมมองที่อ้างอิง ID นี้จะยังไม่ได้รับการตั้งค่าจนกว่าคุณจะเพิ่ม ID เดิมอีกครั้งหรือเลือกบริการอื่น","mapView": "แผนที่","mapLocationField": "ฟิลด์ตำแหน่ง",- "mapService": "บริการแผนที่",- "mapShowRecordList": "แสดงรายการระเบียน","mapSelectLocationField": "เลือกฟิลด์ตำแหน่ง",- "mapSelectService": "เลือกบริการแผนที่","mapMissingLocationField": "ฟิลด์ตำแหน่งที่บันทึกไว้ไม่พร้อมใช้งาน โปรดเลือกฟิลด์ตำแหน่ง",- "mapMissingService": "อุปกรณ์นี้ไม่มีบริการแผนที่ที่บันทึกไว้ เพิ่มบริการด้วย ID เดิมใน การตั้งค่า - แผนที่ หรือเลือกบริการอื่น","mapPageScope": "แผนที่แสดงระเบียนที่โหลดแล้ว ${shown} รายการจากระเบียนที่กรองแล้วทั้งหมด ${total} รายการ",- "mapSkippedLocations": "ตำแหน่งที่ข้าม: ไม่มีพิกัด ${empty} รายการ ไม่ถูกต้อง ${invalid} รายการ ไม่ทราบระบบพิกัด ${unknown} รายการ ระบบพิกัดไม่เข้ากัน ${mismatch} รายการ ไม่รองรับการฉายแผนที่ ${projection} รายการ",+ "mapSkippedLocations": "ตำแหน่งที่ข้าม: ไม่มีพิกัด ${empty} รายการ ไม่ถูกต้อง ${invalid} รายการ ไม่รองรับการฉายแผนที่ ${projection} รายการ","mapNoMarkers": "ไม่มีตำแหน่งที่เข้ากันได้ในหน้าที่โหลดแล้ว","mapLoading": "กำลังโหลดแผนที่...","mapLoadError": "ไม่สามารถโหลดแผนที่ได้ ระเบียนของคุณยังคงพร้อมใช้งาน","mapUnsupportedClient": "ไคลเอนต์นี้ไม่มีสภาพแวดล้อมแผนที่แบบแยกส่วน ระเบียนของคุณยังคงพร้อมใช้งาน","mapOffline": "แผนที่ออฟไลน์ ระเบียนของคุณยังคงพร้อมใช้งาน","mapPublicFallback": "แผนที่จะไม่โหลดในหน้าที่เผยแพร่หรือเนื้อหาที่ส่งออก",- "mapConfigureServices": "ตั้งค่าบริการแผนที่",- "mapFitMarkers": "ปรับให้เห็นหมุดที่โหลดแล้วทั้งหมด","mapTooManyMarkers": "หน้านี้มีตำแหน่งมากกว่า ${limit} รายการ ใช้ตัวกรองหรือลดขนาดหน้าเพื่อแสดงแผนที่",- "defaultCoordinateSystem": "ระบบพิกัดเริ่มต้นสำหรับข้อมูลใหม่",- "defaultCoordinateSystemTip": "ใช้กับข้อมูลใหม่เท่านั้น ตำแหน่งเดิมจะไม่เปลี่ยนแปลงและจะไม่มีการแปลงพิกัด","locationPasteInEditor": "กรอกค่าลองจิจูดและละติจูดแยกกันในตัวแก้ไขตำแหน่ง และตรวจสอบระบบพิกัด","location": "ตำแหน่ง","locationName": "ชื่อ (ไม่บังคับ)","latitude": "ละติจูด","longitude": "ลองจิจูด",- "coordinateSystem": "ระบบพิกัด",- "coordinateSystemUnknown": "ไม่ทราบ","pasteCoordinates": "วางพิกัด","coordinateOrderTip": "อ่านพิกัดตามลำดับที่เลือก โดยลำดับเริ่มต้นคือลองจิจูด ละติจูด","invalidCoordinates": "ป้อนละติจูดที่เป็นจำนวนจำกัดตั้งแต่ -90 ถึง 90 และลองจิจูดตั้งแต่ -180 ถึง 180 หรือเว้นว่างทั้งคู่",- "invalidCoordinateSystem": "เลือกระบบพิกัดที่รองรับ",- "coordinateSystemTip": "เลือกระบบที่พิกัดใช้งานจริง การเปลี่ยนป้ายกำกับจะไม่แปลงพิกัด","pageScrollUp": "หน้าจอก่อนหน้า","pageScrollDown": "หน้าจอถัดไป","showPageScrollButtons": "แสดงปุ่มเลื่อนทีละหน้าจอ",diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.jsonindex f95bb25d0c..39f34fa7e8 100644--- a/app/appearance/langs/tr.json+++ b/app/appearance/langs/tr.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Tanıma motoru","configGroupSignInTokens": "Giriş ve tokenlar","searchControlUnavailable": "Geçerli arama yöntemi için kullanılamaz",- "selectCoordinateSystem": "Bir koordinat sistemi seçin","coordinateOrder": "Koordinat sırası",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Kimlik doğrulamayı atlama etkinken haritalar kullanılamaz. Kayıtlar kullanılabilir durumda kalır",- "mapSettings": "Harita",- "mapServices": "Harita hizmetleri",- "mapServicesTip": "Bu cihaz için hizmetler ekleyin, ardından her veritabanı harita görünümünde ayrı ayrı bir hizmet seçin",- "mapAddService": "Hizmet ekle",- "mapServiceName": "Hizmet adı",- "mapServiceID": "Hizmet kimliği",- "mapServiceIDTip": "Aynı hizmeti başka bir cihazda yapılandırırken bu kimliği değiştirmeyin; mevcut görünümler bu kimliğe başvurmaya devam eder",- "mapProvider": "Harita sağlayıcısı",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Güvenlik kodu",- "mapCredentialsTip": "Kayıtlı kimlik bilgisini korumak için boş bırakın, değiştirmek için yeni bir değer girin veya açıkça temizleyin",- "mapClearCredential": "Kayıtlı kimlik bilgisini temizle",- "mapCredentialSaved": "Kaydedildi; korumak için boş bırakın",- "mapCredentialsPresent": "Gerekli yapılandırma alanları dolduruldu; hizmet erişimi doğrulanmadı",- "mapCredentialsMissing": "Gerekli kimlik bilgileri eksik",- "mapNoServices": "Hizmet seçilmedi",- "mapRenderingTip": "Haritalar yalnızca mevcut koordinatları gösterir. Adres arama, coğrafi kodlama, rota ve otomatik koordinat algılama sunulmaz; kayıtlı koordinatlar ve belirtilen koordinat sistemleri değişmez",- "mapProductionTip": "Kullanmadan önce sağlayıcının hesap uygunluğunu, lisanslarını, kotalarını, izin verilen alan adlarını ve geçerli bölgesel gerekliliklerini kontrol edin",- "mapMissingServiceTip": "Bu görünüm eksik bir hizmete başvuruyor. Başvuruyu geri yüklemek için aynı kimlikle hizmet ekleyin",- "mapSettingsError": "Harita ayarları yüklenemedi veya kaydedilemedi. Lütfen tekrar deneyin",- "mapSettingsConflict": "Harita hizmetleri başka bir yerde değiştirildi. Yeniden düzenlemeden önce verileri tekrar yüklemek için bu taslağı iptal edin",- "mapServiceIDInvalid": "Harf veya rakamla başlayan, 1–128 Latin harfi, rakam, alt çizgi veya kısa çizgiden oluşan benzersiz bir kimlik kullanın",- "mapServiceNameRequired": "Bir hizmet adı girin",- "mapSaveOrCancel": "Önce mevcut değişiklikleri kaydedin veya iptal edin",- "mapDeleteServiceTip": "Bu hizmet silinsin mi? Kimliğine başvuran görünümler, aynı kimliği yeniden ekleyene veya başka bir hizmet seçene kadar yapılandırılmamış kalır","mapView": "Harita","mapLocationField": "Konum alanı",- "mapService": "Harita hizmeti",- "mapShowRecordList": "Kayıt listesini göster","mapSelectLocationField": "Bir konum alanı seçin",- "mapSelectService": "Bir harita hizmeti seçin","mapMissingLocationField": "Kayıtlı konum alanı kullanılamıyor. Bir konum alanı seçin",- "mapMissingService": "Bu cihazda kayıtlı harita hizmeti yok. Ayarlar - Harita bölümünde aynı kimliğe sahip bir hizmet ekleyin veya başka bir hizmet seçin","mapPageScope": "Harita, filtrelenmiş ${total} kayıttan yüklenen ${shown} kaydı gösterir",- "mapSkippedLocations": "Atlanan konumlar: ${empty} koordinatsız, ${invalid} geçersiz, ${unknown} bilinmeyen koordinat sisteminde, ${mismatch} uyumsuz koordinat sisteminde, ${projection} desteklenmeyen izdüşümde",+ "mapSkippedLocations": "Atlanan konumlar: ${empty} koordinatsız, ${invalid} geçersiz, ${projection} desteklenmeyen izdüşümde","mapNoMarkers": "Yüklenen sayfada uyumlu konum yok","mapLoading": "Harita yükleniyor...","mapLoadError": "Harita yüklenemedi. Kayıtlarınız hâlâ kullanılabilir","mapUnsupportedClient": "Bu istemcide yalıtılmış bir harita ortamı bulunmuyor. Kayıtlarınız hâlâ kullanılabilir","mapOffline": "Harita çevrimdışı. Kayıtlarınız hâlâ kullanılabilir","mapPublicFallback": "Yayımlanan sayfalarda veya dışa aktarılan içerikte haritalar yüklenmez",- "mapConfigureServices": "Harita hizmetlerini yapılandır",- "mapFitMarkers": "Yüklenen tüm işaretleri görünüm içine sığdır","mapTooManyMarkers": "Bu sayfada ${limit} konumdan fazla konum var. Haritayı göstermek için filtreleri kullanın veya sayfa boyutunu küçültün",- "defaultCoordinateSystem": "Yeni girişler için varsayılan koordinat sistemi",- "defaultCoordinateSystemTip": "Yalnızca yeni girişlere uygulanır; mevcut konumlar değişmez ve koordinatlar dönüştürülmez","locationPasteInEditor": "Konum düzenleyicisinde boylam ve enlemi ayrı ayrı girin ve koordinat sistemini doğrulayın","location": "Konum","locationName": "Ad (isteğe bağlı)","latitude": "Enlem","longitude": "Boylam",- "coordinateSystem": "Koordinat sistemi",- "coordinateSystemUnknown": "Bilinmiyor","pasteCoordinates": "Koordinatları yapıştır","coordinateOrderTip": "Koordinatlar seçilen sırayla okunur; varsayılan sıra boylam, enlemdir","invalidCoordinates": "-90 ile 90 arasında sonlu bir enlem ve -180 ile 180 arasında bir boylam girin veya ikisini de boş bırakın",- "invalidCoordinateSystem": "Desteklenen bir koordinat sistemi seçin",- "coordinateSystemTip": "Koordinatların gerçekte kullandığı sistemi seçin; etiketi değiştirmek koordinatları dönüştürmez","pageScrollUp": "Önceki ekran","pageScrollDown": "Sonraki ekran","showPageScrollButtons": "Ekranlık kaydırma düğmelerini göster",diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.jsonindex 3bbc4ebb15..792424474b 100644--- a/app/appearance/langs/uk.json+++ b/app/appearance/langs/uk.json@@ -3,72 +3,29 @@"configGroupOCREngine": "Рушій розпізнавання","configGroupSignInTokens": "Вхід і токени","searchControlUnavailable": "Недоступно для поточного методу пошуку",- "selectCoordinateSystem": "Виберіть систему координат","coordinateOrder": "Порядок координат",- "coordinateSystemWGS84": "WGS84 (OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02 (AMap, Tencent Maps)",- "coordinateSystemBD09": "BD-09 (Baidu Maps)","mapAuthenticationBypass": "Мапи недоступні, доки ввімкнено обхід автентифікації. Записи залишаються доступними",- "mapSettings": "Мапа",- "mapServices": "Картографічні сервіси",- "mapServicesTip": "Додайте сервіси для цього пристрою, а потім окремо виберіть сервіс у кожному поданні мапи бази даних",- "mapAddService": "Додати сервіс",- "mapServiceName": "Назва сервісу",- "mapServiceID": "ID сервісу",- "mapServiceIDTip": "Збережіть цей ID під час налаштування того самого сервісу на іншому пристрої; наявні подання й надалі посилатимуться на нього",- "mapProvider": "Постачальник мап",- "mapProviderAMap": "AMap",- "mapProviderTencent": "Tencent Maps",- "mapProviderBaidu": "Baidu Maps",- "mapSecurityCode": "Код безпеки",- "mapCredentialsTip": "Залиште поле порожнім, щоб зберегти облікові дані, введіть заміну або явно видаліть їх",- "mapClearCredential": "Видалити збережені облікові дані",- "mapCredentialSaved": "Збережено; залиште порожнім, щоб зберегти",- "mapCredentialsPresent": "Обов’язкові поля налаштування заповнено; доступ до сервісу не перевірено",- "mapCredentialsMissing": "Відсутні обов’язкові облікові дані",- "mapNoServices": "Сервіс не вибрано",- "mapRenderingTip": "Мапи показують лише наявні координати. Пошук адрес, геокодування, маршрути й автоматичне визначення координат не надаються; збережені координати та вказана для них система координат залишаються незмінними",- "mapProductionTip": "Перед використанням перевірте вимоги до облікового запису, ліцензії, квоти, дозволені домени та чинні регіональні вимоги постачальника",- "mapMissingServiceTip": "Це подання посилається на відсутній сервіс. Додайте його з тим самим ID, щоб відновити посилання",- "mapSettingsError": "Не вдалося завантажити або зберегти налаштування мапи. Спробуйте ще раз",- "mapSettingsConflict": "Картографічні сервіси змінено в іншому місці. Скасуйте цю чернетку, щоб оновити дані перед повторним редагуванням",- "mapServiceIDInvalid": "Використовуйте унікальний ID із 1–128 латинських літер, цифр, підкреслень або дефісів, починаючи з літери чи цифри",- "mapServiceNameRequired": "Введіть назву сервісу",- "mapSaveOrCancel": "Спочатку збережіть або скасуйте поточні зміни",- "mapDeleteServiceTip": "Видалити цей сервіс? Подання, які посилаються на його ID, залишаться неналаштованими, доки ви не додасте цей ID знову або не виберете інший сервіс","mapView": "Мапа","mapLocationField": "Поле місцеположення",- "mapService": "Картографічний сервіс",- "mapShowRecordList": "Показати список записів","mapSelectLocationField": "Виберіть поле місцеположення",- "mapSelectService": "Виберіть картографічний сервіс","mapMissingLocationField": "Збережене поле місцеположення недоступне. Виберіть поле місцеположення",- "mapMissingService": "На цьому пристрої немає збереженого картографічного сервісу. Додайте сервіс із тим самим ID у Налаштування - Мапа або виберіть інший сервіс","mapPageScope": "Мапа показує ${shown} завантажених записів із ${total} відфільтрованих",- "mapSkippedLocations": "Пропущені місцеположення: ${empty} без координат, ${invalid} недійсних, ${unknown} з невідомою системою координат, ${mismatch} з несумісною системою координат, ${projection} з непідтримуваною проєкцією",+ "mapSkippedLocations": "Пропущені місцеположення: ${empty} без координат, ${invalid} недійсних, ${projection} з непідтримуваною проєкцією","mapNoMarkers": "На завантаженій сторінці немає сумісних місцеположень","mapLoading": "Завантаження мапи...","mapLoadError": "Не вдалося завантажити мапу. Ваші записи залишаються доступними","mapUnsupportedClient": "У цьому клієнті немає ізольованого середовища для мап. Ваші записи залишаються доступними","mapOffline": "Мапа недоступна без мережі. Ваші записи залишаються доступними","mapPublicFallback": "Мапи не завантажуються на опублікованих сторінках і в експортованих матеріалах",- "mapConfigureServices": "Налаштувати картографічні сервіси",- "mapFitMarkers": "Показати всі завантажені маркери","mapTooManyMarkers": "На цій сторінці понад ${limit} місцеположень. Використайте фільтри або зменште розмір сторінки, щоб показати мапу",- "defaultCoordinateSystem": "Типова система координат для нових даних",- "defaultCoordinateSystemTip": "Застосовується лише до нових даних; наявні розташування не змінюються, координати не перетворюються","locationPasteInEditor": "Введіть довготу й широту окремо в редакторі розташування та перевірте систему координат","location": "Розташування","locationName": "Назва (необов’язково)","latitude": "Широта","longitude": "Довгота",- "coordinateSystem": "Система координат",- "coordinateSystemUnknown": "Невідома","pasteCoordinates": "Вставити координати","coordinateOrderTip": "Координати зчитуються у вибраному порядку; типовий порядок — довгота, широта","invalidCoordinates": "Введіть скінченну широту від -90 до 90 і довготу від -180 до 180 або залиште обидва поля порожніми",- "invalidCoordinateSystem": "Виберіть підтримувану систему координат",- "coordinateSystemTip": "Виберіть систему, у якій фактично задано координати; зміна позначки не перетворює координати","pageScrollUp": "Попередній екран","pageScrollDown": "Наступний екран","showPageScrollButtons": "Показувати кнопки прокручування на один екран",diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.jsonindex 193cb7823a..847f61dc11 100644--- a/app/appearance/langs/zh-CN.json+++ b/app/appearance/langs/zh-CN.json@@ -3,72 +3,29 @@"configGroupOCREngine": "识别引擎","configGroupSignInTokens": "登录与令牌","searchControlUnavailable": "当前搜索方式不支持此选项",- "selectCoordinateSystem": "请选择坐标系","coordinateOrder": "坐标顺序",- "coordinateSystemWGS84": "WGS84(OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02(高德、腾讯)",- "coordinateSystemBD09": "BD-09(百度)","mapAuthenticationBypass": "启用鉴权绕过时无法使用地图,记录仍可访问",- "mapSettings": "地图",- "mapServices": "地图服务",- "mapServicesTip": "在当前设备添加服务,然后在每个数据库地图视图中单独选择服务",- "mapAddService": "添加服务",- "mapServiceName": "服务名称",- "mapServiceID": "服务 ID",- "mapServiceIDTip": "在其他设备配置同一服务时保留此 ID,已有视图会继续引用该 ID",- "mapProvider": "地图提供商",- "mapProviderAMap": "高德地图",- "mapProviderTencent": "腾讯地图",- "mapProviderBaidu": "百度地图",- "mapSecurityCode": "安全密钥",- "mapCredentialsTip": "留空以保留已保存的凭据,输入新值以替换,或明确选择清除",- "mapClearCredential": "清除已保存的凭据",- "mapCredentialSaved": "已保存,留空以保留",- "mapCredentialsPresent": "所需配置字段已填写,尚未验证服务访问",- "mapCredentialsMissing": "缺少所需凭据",- "mapNoServices": "未选择服务",- "mapRenderingTip": "地图仅显示已有坐标,不提供地址搜索、地理编码、路线规划或自动坐标识别,保存的坐标及其声明的坐标系保持不变",- "mapProductionTip": "使用前请确认提供商的账户资格、许可、配额、允许的域名及适用的地区要求",- "mapMissingServiceTip": "此视图引用的服务不存在,请使用同一 ID 添加服务以恢复引用",- "mapSettingsError": "无法加载或保存地图设置,请重试",- "mapSettingsConflict": "地图服务已在其他位置更改,请取消此草稿以重新加载后再编辑",- "mapServiceIDInvalid": "请使用 1 至 128 个字母、数字、下划线或连字符组成的唯一 ID,并以字母或数字开头",- "mapServiceNameRequired": "请输入服务名称",- "mapSaveOrCancel": "请先保存或取消当前更改",- "mapDeleteServiceTip": "删除此服务?引用该 ID 的视图将保持未配置状态,直到重新添加该 ID 或选择其他服务","mapView": "地图","mapLocationField": "位置字段",- "mapService": "地图服务",- "mapShowRecordList": "显示记录列表","mapSelectLocationField": "请选择位置字段",- "mapSelectService": "请选择地图服务","mapMissingLocationField": "保存的位置字段不可用,请选择位置字段",- "mapMissingService": "此设备没有保存的地图服务,请在设置 - 地图中添加相同 ID 的服务,或选择其他服务","mapPageScope": "地图范围为筛选结果中已加载的 ${shown} 条记录,共 ${total} 条",- "mapSkippedLocations": "已跳过的位置:${empty} 条缺少坐标,${invalid} 条无效,${unknown} 条坐标系未知,${mismatch} 条坐标系不兼容,${projection} 个投影不支持",+ "mapSkippedLocations": "已跳过的位置:${empty} 条缺少坐标,${invalid} 条无效,${projection} 个投影不支持","mapNoMarkers": "已加载的记录中没有兼容的位置","mapLoading": "正在加载地图...","mapLoadError": "地图无法加载,记录仍然可用","mapUnsupportedClient": "此客户端尚不支持隔离的地图运行环境,记录仍然可用","mapOffline": "地图处于离线状态,记录仍然可用","mapPublicFallback": "发布页面和导出内容不加载地图",- "mapConfigureServices": "配置地图服务",- "mapFitMarkers": "显示全部已加载的标记","mapTooManyMarkers": "当前页面的位置超过 ${limit} 个,请使用筛选或减小每页记录数以显示地图",- "defaultCoordinateSystem": "新录入默认坐标系",- "defaultCoordinateSystemTip": "仅用于新录入;已有位置保持不变,不转换坐标","locationPasteInEditor": "请在位置编辑器中分别填写经度和纬度,并确认坐标系","location": "位置","locationName": "名称(可选)","latitude": "纬度","longitude": "经度",- "coordinateSystem": "坐标系",- "coordinateSystemUnknown": "未知","pasteCoordinates": "粘贴坐标","coordinateOrderTip": "按所选顺序读取坐标,默认为经度、纬度","invalidCoordinates": "请输入 -90 至 90 的有限纬度和 -180 至 180 的有限经度,或同时留空",- "invalidCoordinateSystem": "请选择支持的坐标系",- "coordinateSystemTip": "请选择坐标实际使用的坐标系;修改标记不会转换坐标","pageScrollUp": "上一屏","pageScrollDown": "下一屏","showPageScrollButtons": "显示翻屏按钮",diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.jsonindex e2fe7da6b4..4f6df39138 100644--- a/app/appearance/langs/zh-TW.json+++ b/app/appearance/langs/zh-TW.json@@ -3,72 +3,29 @@"configGroupOCREngine": "辨識引擎","configGroupSignInTokens": "登入與權杖","searchControlUnavailable": "目前的搜尋方式不支援此選項",- "selectCoordinateSystem": "請選擇座標系","coordinateOrder": "座標順序",- "coordinateSystemWGS84": "WGS84(OpenFreeMap)",- "coordinateSystemGCJ02": "GCJ-02(高德、騰訊)",- "coordinateSystemBD09": "BD-09(百度)","mapAuthenticationBypass": "啟用驗證繞過時無法使用地圖,記錄仍可存取",- "mapSettings": "地圖",- "mapServices": "地圖服務",- "mapServicesTip": "在目前裝置新增服務,然後在每個資料庫地圖檢視中個別選擇服務",- "mapAddService": "新增服務",- "mapServiceName": "服務名稱",- "mapServiceID": "服務 ID",- "mapServiceIDTip": "在其他裝置設定同一服務時保留此 ID,既有檢視會繼續引用該 ID",- "mapProvider": "地圖提供者",- "mapProviderAMap": "高德地圖",- "mapProviderTencent": "騰訊地圖",- "mapProviderBaidu": "百度地圖",- "mapSecurityCode": "安全金鑰",- "mapCredentialsTip": "留空以保留已儲存的憑證,輸入新值以取代,或明確選擇清除",- "mapClearCredential": "清除已儲存的憑證",- "mapCredentialSaved": "已儲存,留空以保留",- "mapCredentialsPresent": "所需設定欄位已填寫,尚未驗證服務存取",- "mapCredentialsMissing": "缺少所需憑證",- "mapNoServices": "未選擇服務",- "mapRenderingTip": "地圖僅顯示既有座標,不提供地址搜尋、地理編碼、路線規劃或自動座標辨識,儲存的座標及其宣告的座標系保持不變",- "mapProductionTip": "使用前請確認提供者的帳戶資格、授權、配額、允許的網域及適用的地區要求",- "mapMissingServiceTip": "此檢視引用的服務不存在,請使用同一 ID 新增服務以恢復引用",- "mapSettingsError": "無法載入或儲存地圖設定,請重試",- "mapSettingsConflict": "地圖服務已在其他位置變更,請取消此草稿以重新載入後再編輯",- "mapServiceIDInvalid": "請使用 1 至 128 個英文字母、數字、底線或連字號組成的唯一 ID,並以字母或數字開頭",- "mapServiceNameRequired": "請輸入服務名稱",- "mapSaveOrCancel": "請先儲存或取消目前變更",- "mapDeleteServiceTip": "刪除此服務?引用該 ID 的檢視將保持未設定狀態,直到重新新增該 ID 或選擇其他服務","mapView": "地圖","mapLocationField": "位置欄位",- "mapService": "地圖服務",- "mapShowRecordList": "顯示記錄清單","mapSelectLocationField": "請選擇位置欄位",- "mapSelectService": "請選擇地圖服務","mapMissingLocationField": "儲存的位置欄位無法使用,請選擇位置欄位",- "mapMissingService": "此裝置沒有儲存的地圖服務,請在設定 - 地圖中新增相同 ID 的服務,或選擇其他服務","mapPageScope": "地圖範圍為篩選結果中已載入的 ${shown} 筆記錄,共 ${total} 筆",- "mapSkippedLocations": "已略過的位置:${empty} 筆缺少座標,${invalid} 筆無效,${unknown} 筆座標系未知,${mismatch} 筆座標系不相容,${projection} 個投影不支援",+ "mapSkippedLocations": "已略過的位置:${empty} 筆缺少座標,${invalid} 筆無效,${projection} 個投影不支援","mapNoMarkers": "已載入的記錄中沒有相容的位置","mapLoading": "正在載入地圖...","mapLoadError": "地圖無法載入,記錄仍然可用","mapUnsupportedClient": "此用戶端尚不支援隔離的地圖執行環境,記錄仍然可用","mapOffline": "地圖處於離線狀態,記錄仍然可用","mapPublicFallback": "發佈頁面和匯出內容不載入地圖",- "mapConfigureServices": "設定地圖服務",- "mapFitMarkers": "顯示全部已載入的標記","mapTooManyMarkers": "目前頁面的位置超過 ${limit} 個,請使用篩選或減少每頁記錄數以顯示地圖",- "defaultCoordinateSystem": "新輸入預設座標系",- "defaultCoordinateSystemTip": "僅用於新輸入;既有位置保持不變,不轉換座標","locationPasteInEditor": "請在位置編輯器中分別填寫經度和緯度,並確認座標系","location": "位置","locationName": "名稱(選填)","latitude": "緯度","longitude": "經度",- "coordinateSystem": "座標系",- "coordinateSystemUnknown": "未知","pasteCoordinates": "貼上座標","coordinateOrderTip": "依所選順序讀取座標,預設為經度、緯度","invalidCoordinates": "請輸入 -90 至 90 的有限緯度和 -180 至 180 的有限經度,或同時留空",- "invalidCoordinateSystem": "請選擇支援的座標系",- "coordinateSystemTip": "請選擇座標實際使用的座標系;修改標記不會轉換座標","pageScrollUp": "上一屏","pageScrollDown": "下一屏","showPageScrollButtons": "顯示翻屏按鈕",diff --git a/app/electron/mapHostDiagnostics.js b/app/electron/mapHostDiagnostics.jsindex b56c963c3f..cfe8aed51d 100644--- a/app/electron/mapHostDiagnostics.js+++ b/app/electron/mapHostDiagnostics.js@@ -4,8 +4,7 @@ const mapDiagnosticCodes = Object.freeze(["hostSetupFailed", "assetUnavailable", "documentLoadFailed", "bootstrapTimeout", "sdkTimeout","providerRequestDenied", "providerInsecureRequest", "providerHTTPFailure", "providerNetworkFailure","cspScript", "cspWorker", "cspConnect", "cspImage", "cspStyle", "cspEval", "cspWasm",- "storageUnavailable", "webglUnavailable", "amapInvalidKey", "amapInvalidSecurityCode",- "amapDomainMismatch", "amapPlatformMismatch", "geometryInvalid", "geometryLogicalBounds",+ "storageUnavailable", "webglUnavailable", "geometryInvalid", "geometryLogicalBounds","geometryCropBounds", "geometryWindowBounds", "geometryRoundedEmpty",]);const mapCSPDiagnosticCodes = Object.freeze(["cspScript", "cspWorker", "cspConnect", "cspImage", "cspStyle", "cspEval", "cspWasm"]);@@ -13,9 +12,7 @@ const mapCSPResourceCodes = Object.freeze(["blob", "data", "inline", "eval", "wasm", "other","owner-origin", "local-address", "redacted",]);-const isMapCSPHostname = value => typeof value === "string" && value.length <= 96 &&- /(?:^|\.)(?:amap\.com|autonavi\.com|alicdn\.com|taobao\.com)$/.test(value) &&- value.split(".").every(label => /^[a-z](?:[a-z0-9-]{0,22}[a-z0-9])?$/.test(label));+const isMapCSPHostname = value => value === "tiles.openfreemap.org";const isMapCSPResource = value => {if (typeof value !== "string" || value.length > 102) return false;if (mapCSPResourceCodes.includes(value)) return true;@@ -72,10 +69,6 @@ const classifyMapConsoleMessage = message => {}if (/localStorage|sessionStorage/.test(message) && /denied|SecurityError|insecure/i.test(message)) ret.push("storageUnavailable");if (/webgl/i.test(message) && /fail|error|unsupported/i.test(message)) ret.push("webglUnavailable");- for (const [token, code] of [["INVALID_USER_KEY", "amapInvalidKey"], ["INVALID_USER_SCODE", "amapInvalidSecurityCode"],- ["INVALID_USER_DOMAIN", "amapDomainMismatch"], ["USERKEY_PLAT_NOMATCH", "amapPlatformMismatch"]]) {- if (message.includes(token)) ret.push(code);- }return ret;};diff --git a/app/electron/mapHostDiagnostics.test.js b/app/electron/mapHostDiagnostics.test.jsindex abe0b8daeb..266d802073 100644--- a/app/electron/mapHostDiagnostics.test.js+++ b/app/electron/mapHostDiagnostics.test.js@@ -9,7 +9,8 @@ test("provider console diagnostics return fixed categories without SDK text, URL["Refused eval because Content Security Policy script-src does not allow unsafe-eval; key=private", ["cspScript", "cspEval"]],["SecurityError: Access to localStorage is denied for https://secret.invalid", ["storageUnavailable"]],["WebGL initialization failed", ["webglUnavailable"]],- ["INVALID_USER_SCODE credential=private", ["amapInvalidSecurityCode"]],+ ["INVALID_USER_SCODE credential=private", []],+ ["INVALID_USER_KEY INVALID_USER_DOMAIN USERKEY_PLAT_NOMATCH", []],["arbitrary provider text with key=private", []],[undefined, []],];@@ -20,23 +21,21 @@ test("provider console diagnostics return fixed categories without SDK text, URL}});-test("Chromium CSP messages identify bounded resources and public hostnames without retaining their URLs", () => {+test("Chromium CSP messages identify bounded resources and the fixed public tile hostname without retaining their URLs", () => {// Chromium 152 的三类资源拒绝文案,以及旧式 Refused to 文案。const cases = [- ["Loading the script 'https://g.alicdn.com/private.js?key=secret' violates the following Content Security Policy directive: \"script-src https://webapi.amap.com\". The action has been blocked.", "cspScript", "https:g.alicdn.com"],- ["Connecting to 'https://fourier.taobao.com/rp?secret=private' violates the following Content Security Policy directive: \"connect-src https://webapi.amap.com\".", "cspConnect", "https:fourier.taobao.com"],+ ["Loading the script 'https://tiles.openfreemap.org/private.js?key=secret' violates the following Content Security Policy directive: \"script-src https://tiles.openfreemap.org\". The action has been blocked.", "cspScript", "https:tiles.openfreemap.org"],+ ["Connecting to 'https://tiles.openfreemap.org/rp?secret=private' violates the following Content Security Policy directive: \"connect-src https://tiles.openfreemap.org\".", "cspConnect", "https:tiles.openfreemap.org"],["Creating a worker from 'blob:null/private-token' violates the following Content Security Policy directive: \"worker-src 'none'\".", "cspWorker", "blob"],["Refused to create a worker from 'data:text/javascript,private' because it violates the following Content Security Policy directive: \"worker-src 'none'\".", "cspWorker", "data"],- ["Refused to load the script 'https://[email protected]/log?key=secret' because it violates the following Content Security Policy directive: \"script-src https://webapi.amap.com\".", "cspScript", "redacted"],- ["Refused to connect to 'http://vdata.amap.com/private' because it violates the following Content Security Policy directive: \"connect-src https://vdata.amap.com\".", "cspConnect", "http:vdata.amap.com"],- ["Connecting to 'https://webst02.is.autonavi.com/private' violates the following Content Security Policy directive: \"connect-src https://vdata.amap.com\".", "cspConnect", "https:webst02.is.autonavi.com"],- ["Loading the image 'http://webrd01.is.autonavi.com/private' violates the following Content Security Policy directive: \"img-src https://webapi.amap.com\".", "cspImage", "http:webrd01.is.autonavi.com"],- ["Connecting to 'https://wprd01.is.autonavi.com/private?key=secret' violates the following Content Security Policy directive: \"connect-src https://vdata.amap.com\".", "cspConnect", "https:wprd01.is.autonavi.com"],- ["Loading the script 'https://jsapi0.amap.com/private?key=secret' violates the following Content Security Policy directive: \"script-src https://webapi.amap.com\".", "cspScript", "https:jsapi0.amap.com"],- ["Executing inline script violates the following Content Security Policy directive 'script-src https://webapi.amap.com'. Either the 'unsafe-inline' keyword, a hash, or a nonce is required.", "cspScript", "inline"],- ["Evaluating a string as JavaScript violates the following Content Security Policy directive because 'unsafe-eval' is not an allowed source of script: \"script-src https://webapi.amap.com\".", "cspEval", "eval"],- ["Compiling or instantiating a WebAssembly module violates the following Content Security policy directive because 'unsafe-eval' is not an allowed source of script: \"script-src https://webapi.amap.com\".", "cspWasm", "wasm"],- ["Applying inline style violates the following Content Security Policy directive 'style-src-attr https://webapi.amap.com'.", "cspStyle", "inline"],+ ["Refused to load the script 'https://[email protected]/log?key=secret' because it violates the following Content Security Policy directive: \"script-src https://tiles.openfreemap.org\".", "cspScript", "redacted"],+ ["Refused to connect to 'http://tiles.openfreemap.org/private' because it violates the following Content Security Policy directive: \"connect-src https://tiles.openfreemap.org\".", "cspConnect", "http:tiles.openfreemap.org"],+ ["Loading the image 'http://tiles.openfreemap.org/private' violates the following Content Security Policy directive: \"img-src https://tiles.openfreemap.org\".", "cspImage", "http:tiles.openfreemap.org"],+ ["Loading the stylesheet 'https://tiles.openfreemap.org/private?key=secret' violates the following Content Security Policy directive: \"style-src 'none'\".", "cspStyle", "https:tiles.openfreemap.org"],+ ["Executing inline script violates the following Content Security Policy directive 'script-src https://tiles.openfreemap.org'. Either the 'unsafe-inline' keyword, a hash, or a nonce is required.", "cspScript", "inline"],+ ["Evaluating a string as JavaScript violates the following Content Security Policy directive because 'unsafe-eval' is not an allowed source of script: \"script-src https://tiles.openfreemap.org\".", "cspEval", "eval"],+ ["Compiling or instantiating a WebAssembly module violates the following Content Security policy directive because 'unsafe-eval' is not an allowed source of script: \"script-src https://tiles.openfreemap.org\".", "cspWasm", "wasm"],+ ["Applying inline style violates the following Content Security Policy directive 'style-src-attr https://tiles.openfreemap.org'.", "cspStyle", "inline"],];for (const [message, code, resource] of cases) {const result = classifyMapCSPResources(message);@@ -47,16 +46,16 @@ test("Chromium CSP messages identify bounded resources and public hostnames with});test("unknown or malformed CSP resources stay bounded and URL contents cannot become diagnostic data", () => {- for (const [url, resource] of [["https://webapi.amap.com.evil.invalid/path?key=secret", "redacted"],- ["https://webapi.amap.com:8443/private", "https:webapi.amap.com"],+ for (const [url, resource] of [["https://tiles.openfreemap.org.evil.invalid/path?key=secret", "redacted"],+ ["https://tiles.openfreemap.org:8443/private", "https:tiles.openfreemap.org"],["http://unknown.invalid/unsafe-eval?blob:secret", "redacted"], ["file:///secret", "other"],["not a URL private", "other"], ["blob:https://private.invalid/secret", "blob"]]) {- const result = classifyMapCSPResources(`Loading the script '${url}' violates the following Content Security Policy directive: "script-src https://webapi.amap.com".`);+ const result = classifyMapCSPResources(`Loading the script '${url}' violates the following Content Security Policy directive: "script-src https://tiles.openfreemap.org".`);assert.deepEqual(result, [{code: "cspScript", resource}]);}for (const message of [undefined, {}, "provider secret text", "Content Security Policy unknown directive private","Loading the script 'https://private.invalid' violates a made-up directive",- "Loading the script 'https://webapi.amap.com/" + "private".repeat(5000) + "' violates Content Security Policy directive: \"script-src 'none'\"."]) {+ "Loading the script 'https://tiles.openfreemap.org/" + "private".repeat(5000) + "' violates Content Security Policy directive: \"script-src 'none'\"."]) {assert.deepEqual(classifyMapCSPResources(message), []);}});@@ -83,26 +82,27 @@ test("owner and other local addresses become fixed labels without disclosing namassert.deepEqual(result, [{code: "cspConnect", resource: "owner-origin"}]);});-test("resource validator accepts only fixed codes or short canonical hostnames in bounded public domain families", () => {- for (const resource of [...mapCSPResourceCodes, "https:webapi.amap.com", "https:wprd01.is.autonavi.com",- "http:g.alicdn.com", "https:fourier.taobao.com", "https:jsapi0.amap.com"]) {+test("resource validator accepts only fixed codes or the exact public tile hostname", () => {+ for (const resource of [...mapCSPResourceCodes, "https:tiles.openfreemap.org", "http:tiles.openfreemap.org"]) {assert.equal(isMapCSPResource(resource), true, resource);}- for (const resource of [undefined, null, {}, ["blob"], "https://webapi.amap.com", "https:webapi.amap.com:8443",- "https:webapi.amap.com/private", "https:webapi.amap.com?key=secret", "https:webapi.amap.com#secret",- "https:[email protected]", "https:webapi.amap.com.evil.invalid", "https:notamap.com",+ for (const resource of [undefined, null, {}, ["blob"], "https://tiles.openfreemap.org", "https:tiles.openfreemap.org:8443",+ "https:tiles.openfreemap.org/private", "https:tiles.openfreemap.org?key=secret", "https:tiles.openfreemap.org#secret",+ "https:[email protected]", "https:tiles.openfreemap.org.evil.invalid", "https:sub.tiles.openfreemap.org","https:unknown.example", "https:127.0.0.1", "https:[::1]", "https:machine.local", "https:localhost",- "HTTPS:webapi.amap.com", "https:WEBAPI.amap.com", "https:1234567890.amap.com", "https:bad-.amap.com",- "https:" + "a".repeat(25) + ".amap.com", "https:" + ("a".repeat(24) + ".").repeat(4) + "amap.com"]) {+ "HTTPS:tiles.openfreemap.org", "https:TILES.openfreemap.org", "https:tiles.openfreemap.org.",+ "https:" + "a".repeat(100) + ".openfreemap.org"]) {assert.equal(isMapCSPResource(resource), false, String(resource));}assert.equal(MAX_MAP_DIAGNOSTICS, 64);});-test("suspicious public host labels are redacted while the effective blocked directive survives", () => {- for (const host of ["unknown.example", "amap.com.evil.example", "a".repeat(25) + ".amap.com",- ("a".repeat(24) + ".").repeat(4) + "amap.com", "1234567890.amap.com", "bad-.amap.com"]) {- const message = `Loading the script 'https://${host}/private?key=secret' violates the following Content Security Policy directive: "script-src https://webapi.amap.com".`;+test("other providers and unapproved tile subdomains are redacted while blocked directives survive", () => {+ for (const host of ["unknown.example", "webapi.amap.com", "jsapi.amap.com", "webst02.is.autonavi.com",+ "g.alicdn.com", "fourier.taobao.com", "map.qq.com", "api.map.baidu.com", "tiles.openfreemap.org.evil.example",+ "sub.tiles.openfreemap.org", "tiles.openfreemap.org.", "a".repeat(100) + ".openfreemap.org"]) {+ const message = `Loading the script 'https://${host}/private?key=secret' violates the following Content Security Policy directive: "script-src https://tiles.openfreemap.org".`;assert.deepEqual(classifyMapCSPResources(message), [{code: "cspScript", resource: "redacted"}]);+ assert.equal(isMapCSPResource("https:" + host), false);}});diff --git a/app/electron/mapHostManager.js b/app/electron/mapHostManager.jsindex 1afb708c66..294e65eafa 100644--- a/app/electron/mapHostManager.js+++ b/app/electron/mapHostManager.js@@ -16,7 +16,6 @@ const deniedResponse = () => new Response("Forbidden", {status: 403,headers: {"Content-Type": "text/plain; charset=utf-8", "Cache-Control": "no-store"}});const withoutCredentials = (headers) => Object.fromEntries(Object.entries(headers || {}).filter(([name]) => !["cookie", "authorization", "proxy-authorization"].includes(name.toLowerCase())));-const amapSingleHostRedirects = ["jsapi.amap.com", "jsapi-service.amap.com"];const clearMapSession = ses => {for (const method of ["closeAllConnections", "clearStorageData", "clearAuthCache", "clearCache", "clearHostResolverCache"]) {try { void Promise.resolve(ses[method]()).catch(() => {}); } catch (_error) { /* 继续清理其他会话状态。 */ }@@ -24,7 +23,7 @@ const clearMapSession = ses => {};// 此会话从不向任何内核发送网络请求,包括未设置密码的本机内核。-const createMapSessionRouter = ({ses, origin, provider, appDir, readFile = fs.readFile, trackFetch = () => {}, report = () => {}}) => {+const createMapSessionRouter = ({ses, origin, appDir, readFile = fs.readFile, trackFetch = () => {}, report = () => {}}) => {let destroyed = false;let documentRequested = false;const requests = new Set();@@ -36,7 +35,7 @@ const createMapSessionRouter = ({ses, origin, provider, appDir, readFile = fs.reses.allowNTLMCredentialsForDomains("");ses.on("will-download", event => event.preventDefault());ses.webRequest.onBeforeRequest((details, callback) => {- const policy = getMapRequestPolicy(details.url, details.method, origin, provider);+ const policy = getMapRequestPolicy(details.url, details.method, origin);let allowed = !destroyed && !!policy;if (details.resourceType === "mainFrame") {allowed = allowed && policy.type === "local" && policy.document && !documentRequested;@@ -62,7 +61,7 @@ const createMapSessionRouter = ({ses, origin, provider, appDir, readFile = fs.recallback({cancel: destroyed, responseHeaders});});const handle = async (request) => {- const policy = !destroyed && getMapRequestPolicy(request.url, request.method, origin, provider);+ const policy = !destroyed && getMapRequestPolicy(request.url, request.method, origin);if (!policy || request.headers.get("service-worker")) return deniedResponse();if (policy.type === "local") {try {@@ -72,7 +71,7 @@ const createMapSessionRouter = ({ses, origin, provider, appDir, readFile = fs.re"X-Content-Type-Options": "nosniff", "Access-Control-Allow-Origin": "*","Referrer-Policy": "strict-origin-when-cross-origin","Permissions-Policy": "geolocation=(), camera=(), microphone=(), payment=(), usb=(), serial=(), bluetooth=()"};- if (policy.document) headers["Content-Security-Policy"] = createMapContentSecurityPolicy(origin, provider);+ if (policy.document) headers["Content-Security-Policy"] = createMapContentSecurityPolicy(origin);return new Response(request.method === "HEAD" ? null : data, {headers});} catch (_error) {report("assetUnavailable");@@ -99,24 +98,16 @@ const createMapSessionRouter = ({ses, origin, provider, appDir, readFile = fs.reabort.signal.addEventListener("abort", finish, {once: true});try {let url = request.url;- const initialHostname = new URL(url).hostname;for (let redirects = 0; redirects <= 5; redirects++) {if (destroyed || abort.signal.aborted) break;- if (!isAllowedMapProviderURL(url, provider)) {+ if (!isAllowedMapProviderURL(url)) {report(url.startsWith("http:") ? "providerInsecureRequest" : "providerRequestDenied");break;}- const hostname = new URL(url).hostname;- // 代理会隐藏重定向终点;新增来源不得借跨主机跳转越过各自的 CSP 用途限制。- if (provider === "amap" && hostname !== initialHostname &&- [initialHostname, hostname].some(host => amapSingleHostRedirects.includes(host))) {- report("providerRequestDenied");- break;- }if (activeURL) trackFetch(activeURL, -1);activeURL = url;trackFetch(activeURL, 1);- // 不复制浏览器凭证或任意请求头;服务商的密钥来源校验仅使用内核来源,不携带笔记路径。+ // 不复制浏览器凭证或任意请求头;来源只保留内核来源,不携带笔记路径。const headers = {"Referer": origin + "/"};for (const name of ["accept", "accept-language", "range"]) {const value = request.headers.get(name);@@ -163,7 +154,7 @@ const createMapSessionRouter = ({ses, origin, provider, appDir, readFile = fs.rereturn new Response(body, {status: response.status, headers: responseHeaders});}} catch (_error) {- // 服务商地址可能包含密钥,不记录请求地址或异常文本。+ // 请求地址可能包含私有数据,不记录请求地址或异常文本。if (!destroyed && !abort.signal.aborted) report("providerNetworkFailure");}finish();@@ -201,7 +192,7 @@ const createMapHostManager = ({app, ipcMain, session, BrowserWindow, WebContentsapp.on("login", (event, contents, details, _authInfo, callback) => {if (!contents && isMapAuthentication(contents, details.url)) { event.preventDefault(); callback(); }});- // 返回固定诊断码,不暴露地址、启动参数值或地图凭据;所有宿主入口复用相同信任检查。+ // 返回固定诊断码,不暴露地址或启动参数值;所有宿主入口复用相同信任检查。const inspectOwner = event => {if (!event?.sender || event.sender.isDestroyed()) return {reason: "ownerUnavailable"};if (event.senderFrame !== event.sender.mainFrame) return {reason: "notMainFrame"};@@ -244,7 +235,6 @@ const createMapHostManager = ({app, ipcMain, session, BrowserWindow, WebContentshosts.delete(host.key);for (const [emitter, name, listener] of host.listeners) emitter.removeListener(name, listener);host.ids.clear();- host.init.credentials = {};host.points = undefined;host.router.destroy();for (const port of [host.port, host.transferredPort]) {@@ -330,7 +320,7 @@ const createMapHostManager = ({app, ipcMain, session, BrowserWindow, WebContents};try {ses = session.fromPartition("siyuan-map-" + randomID(), {cache: false});- router = createMapSessionRouter({ses, origin: owner.origin, provider: init.provider, appDir, readFile, trackFetch, report});+ router = createMapSessionRouter({ses, origin: owner.origin, appDir, readFile, trackFetch, report});view = new WebContentsView({webPreferences: {session: ses, sandbox: true, contextIsolation: true,webSecurity: true, nodeIntegration: false, nodeIntegrationInSubFrames: false,nodeIntegrationInWorker: false, webviewTag: false, allowRunningInsecureContent: false,@@ -377,7 +367,7 @@ const createMapHostManager = ({app, ipcMain, session, BrowserWindow, WebContentsfor (const name of ["focus", "show", "restore"]) listen(host, owner.win, name, () => applyGeometry(host));listen(host, event.sender, "zoom-changed", () => hide(host));const nonce = randomID();- const entryURL = owner.origin + "/stage/map/index.html?provider=" + init.provider + "#" + init.instanceID + ":" + nonce;+ const entryURL = owner.origin + "/stage/map/index.html?provider=openfreemap#" + init.instanceID + ":" + nonce;listen(host, contents, "did-finish-load", () => {if (host.destroyed) return;try {@@ -400,7 +390,6 @@ const createMapHostManager = ({app, ipcMain, session, BrowserWindow, WebContents// SDK 脚本和地图完成分别最多等待 20 秒,启动耗时不占用这两个阶段的预算。setDeadline(host, 45000);post(host, init);- init.credentials = {};} else if (reply.type === "ready" && host.bootstrapped && !host.ready) {host.ready = true;clearTimeout(host.timer);@@ -433,7 +422,6 @@ const createMapHostManager = ({app, ipcMain, session, BrowserWindow, WebContentsowner.win.contentView.addChildView(view);void contents.loadURL(entryURL).catch(() => { report("documentLoadFailed"); fail(host, "hostDocumentLoadFailed"); });} catch (_error) {- init.credentials = {};if (host) fail(host, creationFailure);else if (router) router.destroy();else if (ses) clearMapSession(ses);@@ -444,7 +432,7 @@ const createMapHostManager = ({app, ipcMain, session, BrowserWindow, WebContentsipcMain.on("siyuan-map-command", (event, value) => {const host = getHost(event, value);if (!host) return;- const command = parseMapCommand(value, host.init.instanceID, host.init.provider);+ const command = parseMapCommand(value, host.init.instanceID);if (!command) return;if (command.type === "destroy") { destroy(host); return; }if (command.type === "setPoints") {diff --git a/app/electron/mapHostManager.test.js b/app/electron/mapHostManager.test.jsindex a3a4e70b41..95acff0b9b 100644--- a/app/electron/mapHostManager.test.js+++ b/app/electron/mapHostManager.test.js@@ -36,7 +36,7 @@ const createSession = () => {const setupRouter = (options = {}) => {const ses = createSession();const files = [];- const router = createMapSessionRouter({ses, origin, provider: "openfreemap", appDir: "/app", readFile: async file => {+ const router = createMapSessionRouter({ses, origin, appDir: "/app", readFile: async file => {files.push(file); return Buffer.from("asset");}, ...options});return {ses, router, files};@@ -120,23 +120,22 @@ test("same-provider redirects work without leaking redirect headers or providerrouter.destroy();});-test("new AMap CSP sources reject cross-host redirects before fetching the unauthorized destination", async () => {- for (const [from, to] of [- ["webapi.amap.com", "jsapi.amap.com"], ["webapi.amap.com", "jsapi-service.amap.com"],- ["jsapi.amap.com", "webapi.amap.com"], ["jsapi-service.amap.com", "restapi.amap.com"],- ["jsapi.amap.com", "jsapi-service.amap.com"], ["jsapi-service.amap.com", "jsapi.amap.com"],- ]) {+test("OpenFreeMap redirects cannot reach other providers or unapproved hosts on any hop", async () => {+ for (const to of ["jsapi.amap.com", "jsapi-service.amap.com", "webapi.amap.com", "restapi.amap.com",+ "webrd01.is.autonavi.com", "map.qq.com", "api.map.baidu.com", "tiles.openfreemap.org.evil.invalid"]) {const reports = [], tracked = [];- const {ses, router} = setupRouter({provider: "amap", report: code => reports.push(code),+ const {ses, router} = setupRouter({report: code => reports.push(code),trackFetch: (url, delta) => tracked.push([url, delta])});ses.fetch = async (url, options) => {ses.fetches.push({url, options});- return new Response(null, {status: 302, headers: {Location: "https://" + to + "/private?key=secret"}});+ return new Response(null, {status: 302, headers: {+ Location: url.endsWith("/start") ? "/next" : "https://" + to + "/private?key=secret",+ }});};- const initialURL = "https://" + from + "/start";+ const initialURL = "https://tiles.openfreemap.org/start";const response = await ses.protocols.https(new Request(initialURL));- assert.equal(response.status, 403, from + " -> " + to);- assert.deepEqual(ses.fetches.map(fetch => fetch.url), [initialURL]);+ assert.equal(response.status, 403, to);+ assert.deepEqual(ses.fetches.map(fetch => fetch.url), [initialURL, "https://tiles.openfreemap.org/next"]);assert.deepEqual(reports, ["providerRequestDenied"]);assert.equal(response.headers.get("location"), null);assert.equal(tracked.reduce((total, entry) => total + entry[1], 0), 0);@@ -144,50 +143,17 @@ test("new AMap CSP sources reject cross-host redirects before fetching the unaut}});-test("new AMap sources permit same-host path redirects with unchanged anonymous forwarding", async () => {- for (const hostname of ["jsapi.amap.com", "jsapi-service.amap.com"]) {- const reports = [];- const {ses, router} = setupRouter({provider: "amap", report: code => reports.push(code)});- ses.fetch = async (url, options) => {- ses.fetches.push({url, options});- return url.endsWith("/start") ? new Response(null, {status: 307, headers: {Location: "/end"}}) :- new Response("provider-body", {headers: {"Content-Type": "application/javascript", "Set-Cookie": "secret"}});- };- const response = await ses.protocols.https(new Request("https://" + hostname + "/start", {- headers: {Cookie: "secret", Authorization: "secret"},- }));- assert.equal(await response.text(), "provider-body");- assert.deepEqual(ses.fetches.map(fetch => fetch.url), ["https://" + hostname + "/start", "https://" + hostname + "/end"]);- for (const {options} of ses.fetches) {- assert.equal(options.credentials, "omit");- assert.equal(options.redirect, "manual");- assert.deepEqual(options.headers, {Referer: origin + "/"});- }- assert.equal(response.headers.get("set-cookie"), null);- assert.deepEqual(reports, []);- router.destroy();- }-});--test("existing AMap cross-host redirects retain behavior but cannot enter a new source on a later hop", async () => {- for (const enterNewSource of [false, true]) {- const reports = [];- const {ses, router} = setupRouter({provider: "amap", report: code => reports.push(code)});- ses.fetch = async (url, options) => {- ses.fetches.push({url, options});- if (url === "https://webapi.amap.com/start") {- return new Response(null, {status: 302, headers: {Location: "https://restapi.amap.com/end"}});- }- return enterNewSource ? new Response(null, {status: 302, headers: {Location: "https://jsapi.amap.com/private"}}) :- new Response("existing-provider-body");- };- const response = await ses.protocols.https(new Request("https://webapi.amap.com/start"));- assert.equal(response.status, enterNewSource ? 403 : 200);- assert.deepEqual(ses.fetches.map(fetch => fetch.url), ["https://webapi.amap.com/start", "https://restapi.amap.com/end"]);- assert.deepEqual(reports, enterNewSource ? ["providerRequestDenied"] : []);- await response.body?.cancel();- router.destroy();- }+test("OpenFreeMap redirect loops remain bounded and release anonymous request tracking", async () => {+ const tracked = [];+ const {ses, router} = setupRouter({trackFetch: (url, delta) => tracked.push([url, delta])});+ ses.fetch = async (url, options) => {+ ses.fetches.push({url, options});+ return new Response(null, {status: 302, headers: {Location: "/loop"}});+ };+ assert.equal((await ses.protocols.https(new Request("https://tiles.openfreemap.org/loop"))).status, 403);+ assert.equal(ses.fetches.length, 6);+ assert.equal(tracked.reduce((total, entry) => total + entry[1], 0), 0);+ router.destroy();});test("destroy aborts in-flight provider requests, clears session state and leaves orphan traffic denied", async () => {@@ -288,9 +254,9 @@ const setup = (initialFault) => {setInitialized(value) { initialized = value; }};};-test("WCV has a unique memory session, secure preferences, no external-open handler and no credentials before bootstrap", () => {+test("WCV keeps an isolated memory session, secure preferences, denied external navigation and credential-free bootstrap", () => {const s = setup();- assert.deepEqual(s.create({provider: "amap", credentials: {apiKey: "test-key", securityCode: "test-code"}}), envelope);+ assert.deepEqual(s.create({credentials: {apiKey: "test-key", securityCode: "test-code"}}), envelope);const prefs = s.views[0].options.webPreferences;assert.equal(prefs.sandbox, true); assert.equal(prefs.webSecurity, true); assert.equal(prefs.contextIsolation, true);for (const key of ["nodeIntegration", "nodeIntegrationInSubFrames", "nodeIntegrationInWorker", "webviewTag", "allowRunningInsecureContent"]) {@@ -307,7 +273,7 @@ test("WCV has a unique memory session, secure preferences, no external-open hands.reply({type: "ready"});assert.equal(s.owner.sent.length, 0);s.reply({type: "bootstrapReady"});- assert.equal(s.channels[0].port1.sent[0].credentials.apiKey, "test-key");+ assert.deepEqual(s.channels[0].port1.sent[0], {...envelope, type: "init", provider: "openfreemap", theme: "light"});s.reply({type: "bootstrapReady"});assert.equal(s.channels[0].port1.sent.length, 1);s.manager.destroyAll();@@ -332,10 +298,11 @@ test("only initialized registered owner main frame may create, update or destroytest("points and clicks are bounded by current revision and membership; ready is one-shot", () => {const s = setup(); s.create(); s.load();- s.command({type: "setPoints", revision: 2, points: [{id: "row", longitude: 10, latitude: 20, coordinateSystem: "wgs84", secret: "never"}]});+ s.command({type: "setPoints", revision: 2, points: [{id: "row", longitude: 10, latitude: 20, secret: "never"}]});s.reply({type: "bootstrapReady"}); s.reply({type: "ready"}); s.reply({type: "ready"});assert.equal(s.owner.sent.filter(entry => entry[1].type === "ready").length, 1);- assert.equal(s.channels[0].port1.sent.find(entry => entry.type === "setPoints").points[0].secret, undefined);+ assert.deepEqual(s.channels[0].port1.sent.find(entry => entry.type === "setPoints").points,+ [{id: "row", longitude: 10, latitude: 20}]);s.reply({type: "markerClick", id: "row", revision: 1});s.reply({type: "markerClick", id: "unknown", revision: 2});s.reply({type: "markerClick", id: "row", revision: 2, url: "https://evil.example"});@@ -419,7 +386,7 @@ test("known host diagnostics are bounded fixed codes and stop on disposal", () =contents.emit("console-message", {message: "unclassified private detail"});assert.deepEqual(s.owner.sent.map(entry => entry[1]), [{...envelope, type: "diagnostic", code: "cspWorker"}]);s.manager.destroyAll();- contents.emit("console-message", {message: "INVALID_USER_KEY"});+ contents.emit("console-message", {message: "WebGL initialization failed"});assert.equal(s.owner.sent.length, 1);});@@ -428,31 +395,30 @@ test("CSP resources are captured before load, deduplicated by category and isolaassert.deepEqual(s.owner.sent.map(entry => entry[1]), [{...envelope, type: "diagnostic", code: "cspWorker", resource: "blob"}]);const contents = s.views[0].webContents;const emit = url => contents.emit("console-message", {}, 2,- `Connecting to '${url}' violates the following Content Security Policy directive: "connect-src https://webapi.amap.com".`);- emit("https://g.alicdn.com/path?key=secret");- emit("https://g.alicdn.com/another?key=another-secret");+ `Connecting to '${url}' violates the following Content Security Policy directive: "connect-src https://tiles.openfreemap.org".`);+ emit("https://tiles.openfreemap.org/path?key=secret");+ emit("https://tiles.openfreemap.org/another?key=another-secret");emit("blob:null/private");for (let index = 0; index < 100; index++) emit(`https://unknown-${index}.invalid/secret`);- assert.deepEqual(s.owner.sent.map(entry => entry[1].resource), ["blob", "https:g.alicdn.com", "blob", "redacted"]);+ assert.deepEqual(s.owner.sent.map(entry => entry[1].resource), ["blob", "https:tiles.openfreemap.org", "blob", "redacted"]);assert.equal(JSON.stringify(s.owner.sent).includes("secret"), false);const count = s.owner.sent.length;s.load();- s.reply({type: "diagnostic", code: "cspWorker", resource: "https:g.alicdn.com"});+ s.reply({type: "diagnostic", code: "cspWorker", resource: "https:tiles.openfreemap.org"});s.owner.emit("console-message", {message: "Content Security Policy worker-src 'none'"});assert.equal(s.owner.sent.length, count, "only the known map contents can contribute diagnostics");s.manager.destroyAll();- emit("https://fourier.taobao.com/private");+ emit("http://tiles.openfreemap.org/private");assert.equal(s.owner.sent.length, count);});-test("dynamic public CSP source diagnostics remain bounded per host", () => {+test("unapproved CSP hostnames redact and deduplicate without entering public diagnostics", () => {const s = setup(); s.create();const contents = s.views[0].webContents;for (let index = 0; index < 100; index++) {- contents.emit("console-message", {message: `Connecting to 'https://map${index}.amap.com/private?key=secret' violates the following Content Security Policy directive: "connect-src https://webapi.amap.com".`});+ contents.emit("console-message", {message: `Connecting to 'https://map${index}.openfreemap.org/private?key=secret' violates the following Content Security Policy directive: "connect-src https://tiles.openfreemap.org".`});}- assert.equal(s.owner.sent.length, 64);- assert.ok(s.owner.sent.every(entry => entry[1].instanceID === envelope.instanceID));+ assert.deepEqual(s.owner.sent.map(entry => entry[1]), [{...envelope, type: "diagnostic", code: "cspConnect", resource: "redacted"}]);assert.equal(JSON.stringify(s.owner.sent).includes("secret"), false);s.manager.destroyAll();});diff --git a/app/electron/mapHostPolicy.js b/app/electron/mapHostPolicy.jsindex cde7e260a0..e2a494c4da 100644--- a/app/electron/mapHostPolicy.js+++ b/app/electron/mapHostPolicy.js@@ -13,12 +13,6 @@ const mapHostFiles = Object.freeze({"/stage/build/map/maplibre-LICENSE.txt": ["stage/build/map/maplibre-LICENSE.txt", "text/plain; charset=utf-8"],});-const providerHosts = Object.freeze({- openfreemap: ["tiles.openfreemap.org"],- amap: ["jsapi.amap.com", "jsapi-service.amap.com", "webapi.amap.com", "restapi.amap.com", "vdata.amap.com", "a.amap.com", "*.is.autonavi.com"],- tencent: ["map.qq.com", "apis.map.qq.com", "*.map.qq.com"],- baidu: ["api.map.baidu.com", "*.map.bdimg.com", "*.bdimg.com", "*.map.baidu.com"],-});// Electron 默认启用 allow-file-access-from-files;地图仅加载 HTTP(S) 文档,并由独立会话拒绝文件协议。// 该开关只影响文件来源文档,不应误判为此地图宿主的安全绕过。const unsafeMapSwitches = Object.freeze([@@ -35,7 +29,6 @@ const hasUnsafeMapSwitches = (commandLine) => unsafeMapSwitches.some(name => comconst isRecord = value => !!value && typeof value === "object" && !Array.isArray(value);const isMapInstanceID = value => typeof value === "string" && /^[a-f0-9]{48}$/.test(value);-const isMapProvider = value => typeof value === "string" && Object.hasOwn(providerHosts, value);const isMapTheme = value => value === "light" || value === "dark";const isMapRevision = value => Number.isSafeInteger(value) && value >= 0;const isMapIdentifier = value => typeof value === "string" && /^[a-zA-Z0-9_-]{1,128}$/.test(value);@@ -48,42 +41,29 @@ const normalizeMapOrigin = value => {return;}};-const sanitizeMapCredentials = (value, provider) => {- const result = {};- if (!isRecord(value) || provider === "openfreemap") return result;- for (const key of provider === "amap" ? ["apiKey", "securityCode"] : ["apiKey"]) {- const text = typeof value[key] === "string" ? value[key].trim() : "";- if (text && Buffer.byteLength(text, "utf8") <= 4096) result[key] = text;- }- return result;-};-const sanitizeMapPoints = (value, provider) => {+const sanitizeMapPoints = value => {if (!Array.isArray(value)) return [];const ids = new Set();const points = [];for (const point of value.slice(0, 10000)) {- if (!isRecord(point) || !isMapIdentifier(point.id) || ids.has(point.id) ||+ if (!isRecord(point) || "coordinateSystem" in point || !isMapIdentifier(point.id) || ids.has(point.id) ||!Number.isFinite(point.longitude) || Math.abs(point.longitude) > 180 ||- !Number.isFinite(point.latitude) || Math.abs(point.latitude) > 90 ||- (["openfreemap", "amap"].includes(provider) && Math.abs(point.latitude) > 85.0511287798066)) continue;- const systems = provider === "openfreemap" ? ["wgs84"] : provider === "baidu" ? ["bd09", "gcj02"] : ["gcj02"];- if (!systems.includes(point.coordinateSystem)) continue;+ !Number.isFinite(point.latitude) || Math.abs(point.latitude) > 85.0511287798066) continue;ids.add(point.id);- points.push({id: point.id, longitude: point.longitude, latitude: point.latitude, coordinateSystem: point.coordinateSystem});+ points.push({id: point.id, longitude: point.longitude, latitude: point.latitude});}return points;};const parseMapCreate = value => {if (!isRecord(value) || value.version !== 1 || !isMapInstanceID(value.instanceID) ||- !isMapProvider(value.provider) || !isMapTheme(value.theme)) return;- return {version: 1, instanceID: value.instanceID, type: "init", provider: value.provider,- credentials: sanitizeMapCredentials(value.credentials, value.provider), theme: value.theme};+ value.provider !== "openfreemap" || !isMapTheme(value.theme)) return;+ return {version: 1, instanceID: value.instanceID, type: "init", provider: "openfreemap", theme: value.theme};};-const parseMapCommand = (value, instanceID, provider) => {+const parseMapCommand = (value, instanceID) => {if (!isRecord(value) || value.version !== 1 || value.instanceID !== instanceID) return;const base = {version: 1, instanceID};if (value.type === "setPoints" && isMapRevision(value.revision) && Array.isArray(value.points)) {- return {...base, type: value.type, revision: value.revision, points: sanitizeMapPoints(value.points, provider)};+ return {...base, type: value.type, revision: value.revision, points: sanitizeMapPoints(value.points)};}if (value.type === "theme" && isMapTheme(value.theme)) return {...base, type: value.type, theme: value.theme};if (["fit", "resize", "destroy"].includes(value.type)) return {...base, type: value.type};@@ -95,8 +75,8 @@ const parseMapReply = (value, instanceID) => {if (value.type === "markerClick" && isMapIdentifier(value.id) && isMapRevision(value.revision)) {return {...base, type: value.type, id: value.id, revision: value.revision};}- if (value.type === "error" && ["unsupportedEnvironment", "missingCredentials", "invalidConfiguration",- "hostUnavailable", "sdkUnavailable", "mapUnavailable", "sdkScriptLoadFailed", "sdkCallbackTimeout",+ if (value.type === "error" && ["unsupportedEnvironment", "invalidConfiguration",+ "hostUnavailable", "sdkUnavailable", "mapUnavailable", "sdkScriptLoadFailed","sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout", "hostLimitReached", "hostSetupFailed","hostAttachFailed", "hostDocumentLoadFailed", "hostDocumentLoadTimeout", "hostDocumentReloaded","hostDocumentMismatch", "hostRendererGone", "hostDestroyed", "hostPortSetupFailed", "hostPortClosed",@@ -106,17 +86,16 @@ const parseMapReply = (value, instanceID) => {}};-const isAllowedMapProviderURL = (value, provider) => {+const isAllowedMapProviderURL = value => {try {const url = new URL(value);- return isMapProvider(provider) && url.protocol === "https:" && !url.username && !url.password &&- !url.port && !url.hash && providerHosts[provider].some(host => host.startsWith("*.")- ? url.hostname.endsWith(host.slice(1)) && url.hostname !== host.slice(2) : url.hostname === host);+ return url.protocol === "https:" && !url.username && !url.password &&+ !url.port && !url.hash && url.hostname === "tiles.openfreemap.org";} catch (_error) {return false;}};-const getMapRequestPolicy = (value, method, origin, provider) => {+const getMapRequestPolicy = (value, method, origin) => {try {if (!["GET", "HEAD"].includes(method) || typeof value !== "string" || value.length > 16384) return;const url = new URL(value);@@ -124,46 +103,25 @@ const getMapRequestPolicy = (value, method, origin, provider) => {if (url.origin === origin) {if (!Object.hasOwn(mapHostFiles, url.pathname)) return;if (url.pathname === "/stage/map/index.html") {- if (url.search !== "?provider=" + provider) return;+ if (url.search !== "?provider=openfreemap") return;} else if (url.search) return;return {type: "local", file: mapHostFiles[url.pathname], document: url.pathname === "/stage/map/index.html"};}- if (isAllowedMapProviderURL(value, provider)) return {type: "provider"};+ if (isAllowedMapProviderURL(value)) return {type: "provider"};} catch (_error) {return;}};-const createMapContentSecurityPolicy = (origin, provider) => {- if (!normalizeMapOrigin(origin) || !isMapProvider(provider)) throw new Error("Invalid map origin or provider");+const createMapContentSecurityPolicy = origin => {+ if (!normalizeMapOrigin(origin)) throw new Error("Invalid map origin");const assets = origin + "/stage/build/map/";- let scripts = assets + "host.js";- let connect = "'none'";- let images = "data: blob:";- let styles = "'unsafe-inline' " + origin + "/stage/map/host.css";- let workers = "'none'";- if (provider === "openfreemap") {- scripts += " " + assets + "maplibre-gl.js";- connect = "https://tiles.openfreemap.org " + assets + "maplibre-gl-csp-worker.js";- images += " https://tiles.openfreemap.org";- styles += " " + assets + "maplibre-gl.css";- workers = "blob:";- } else if (provider === "amap") {- scripts += " https://webapi.amap.com https://restapi.amap.com https://jsapi-service.amap.com";- workers = "blob:";- connect = "https://webapi.amap.com https://restapi.amap.com https://vdata.amap.com https://jsapi.amap.com";- images += " https://webapi.amap.com https://a.amap.com https://*.is.autonavi.com";- } else if (provider === "tencent") {- scripts += " https://map.qq.com";- connect = "https://map.qq.com https://apis.map.qq.com https://*.map.qq.com";- images += " https://map.qq.com https://*.map.qq.com";- } else {- scripts += " https://api.map.baidu.com";- connect = "https://api.map.baidu.com https://*.map.bdimg.com https://*.bdimg.com";- images += " https://api.map.baidu.com https://*.map.bdimg.com https://*.bdimg.com https://*.map.baidu.com";- }+ const scripts = assets + "host.js " + assets + "maplibre-gl.js";+ const connect = "https://tiles.openfreemap.org " + assets + "maplibre-gl-csp-worker.js";+ const images = "data: blob: https://tiles.openfreemap.org";+ const styles = "'unsafe-inline' " + origin + "/stage/map/host.css " + assets + "maplibre-gl.css";return "default-src 'none'; sandbox allow-scripts; script-src " + scripts + "; connect-src " + connect +- "; img-src " + images + "; style-src " + styles + "; font-src 'none'; worker-src " + workers ++ "; img-src " + images + "; style-src " + styles + "; font-src 'none'; worker-src blob:" +"; frame-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'";};@@ -193,6 +151,6 @@ const parseMapGeometry = (value, zoom, contentBounds, report = () => {}) => {crop: {x: crop.x + left / zoom - x, y: crop.y + top / zoom - y}};};-module.exports = {mapHostFiles, providerHosts, unsafeMapSwitches, hasUnsafeMapSwitches, normalizeMapOrigin,+module.exports = {mapHostFiles, unsafeMapSwitches, hasUnsafeMapSwitches, normalizeMapOrigin,isMapInstanceID, parseMapCreate, parseMapCommand, parseMapReply, parseMapGeometry,isAllowedMapProviderURL, getMapRequestPolicy, createMapContentSecurityPolicy};diff --git a/app/electron/mapHostPolicy.test.js b/app/electron/mapHostPolicy.test.jsindex 7618e2e9fb..e3f98674ab 100644--- a/app/electron/mapHostPolicy.test.js+++ b/app/electron/mapHostPolicy.test.js@@ -19,57 +19,69 @@ test("map origin accepts only the exact registered HTTP(S) origin", () => {test("only fixed local assets are available; another kernel, APIs, methods and path aliases are denied", () => {for (const file of Object.keys(mapHostFiles)) {const query = file.endsWith("index.html") ? "?provider=openfreemap" : "";- assert.equal(getMapRequestPolicy(origin + file + query, "GET", origin, "openfreemap").type, "local");+ assert.equal(getMapRequestPolicy(origin + file + query, "GET", origin).type, "local");}for (const url of [origin + "/api/system/getConf", origin + "/stage/build/app/index.js", origin + "/stage/map/",origin + "/stage/map/index.html?provider=amap", origin + "/stage/map/index.html?provider=openfreemap&extra=1",origin + "/stage/map/%69ndex.html?provider=openfreemap", origin + "/stage/map/host.css?api=1","http://127.0.0.1:6807/stage/map/host.css", "file:///etc/passwd", "https://evil.example/", "ws://127.0.0.1:6806/ws"]) {- assert.equal(getMapRequestPolicy(url, "GET", origin, "openfreemap"), undefined, url);+ assert.equal(getMapRequestPolicy(url, "GET", origin), undefined, url);}- assert.equal(getMapRequestPolicy(origin + "/stage/map/host.css", "POST", origin, "openfreemap"), undefined);+ assert.equal(getMapRequestPolicy(origin + "/stage/map/host.css", "POST", origin), undefined);});test("provider routing rejects other providers, insecure schemes, ports, credentials and suffix tricks", () => {- assert.equal(isAllowedMapProviderURL("https://tiles.openfreemap.org/planet/a", "openfreemap"), true);- assert.equal(isAllowedMapProviderURL("https://webrd01.is.autonavi.com/a", "amap"), true);+ assert.equal(isAllowedMapProviderURL("https://tiles.openfreemap.org/planet/a"), true);for (const url of ["http://tiles.openfreemap.org/a", "https://tiles.openfreemap.org:444/a","https://key:[email protected]/a", "https://tiles.openfreemap.org.evil.example/a","https://eviltiles.openfreemap.org/a", "https://tiles.openfreemap.org./a", "https://tiles.openfreemap.org/a#fragment",- "https://webapi.amap.com/maps", "https://127.0.0.1/api", "data:text/plain,a", "file:///tmp/a"]) {- assert.equal(isAllowedMapProviderURL(url, "openfreemap"), false, url);+ "https://webapi.amap.com/maps", "https://webrd01.is.autonavi.com/a", "https://map.qq.com/",+ "https://api.map.baidu.com/", "https://127.0.0.1/api", "data:text/plain,a", "file:///tmp/a"]) {+ assert.equal(isAllowedMapProviderURL(url), false, url);}- assert.equal(isAllowedMapProviderURL("https://map.qq.com/", "__proto__"), false);});-test("credentials, point metadata and commands are bounded whitelist copies", () => {- const init = parseMapCreate({...envelope, provider: "amap", theme: "dark", credentials: {+test("only OpenFreeMap initializes and credentials, metadata and commands cannot cross the whitelist", () => {+ const init = parseMapCreate({...envelope, provider: "openfreemap", theme: "dark", credentials: {apiKey: " key ", securityCode: " code ", userToken: "never", url: origin,}, executeJavaScript: "never"});- assert.deepEqual(init.credentials, {apiKey: "key", securityCode: "code"});- assert.equal(init.executeJavaScript, undefined);- assert.deepEqual(parseMapCreate({...envelope, provider: "openfreemap", theme: "light", credentials: {apiKey: "secret"}}).credentials, {});- assert.deepEqual(parseMapCreate({...envelope, provider: "tencent", theme: "light", credentials: {apiKey: "a".repeat(4097), securityCode: "never"}}).credentials, {});- assert.equal(parseMapCreate({...envelope, provider: "evil", theme: "light"}), undefined);- const point = {id: "row-1", longitude: 120, latitude: 30, coordinateSystem: "wgs84", title: "private", content: "private"};+ assert.deepEqual(init, {...envelope, type: "init", provider: "openfreemap", theme: "dark"});+ for (const provider of ["amap", "tencent", "baidu", "evil", "__proto__", undefined]) {+ assert.equal(parseMapCreate({...envelope, provider, theme: "light"}), undefined);+ }+ const point = {id: "row-1", longitude: 120, latitude: 30, title: "private", content: "private"};const command = parseMapCommand({...envelope, type: "setPoints", revision: 1, points: [point, point,- {...point, id: "bad-lat", latitude: 90}, {...point, id: "bad-crs", coordinateSystem: "gcj02"}]}, instanceID, "openfreemap");- assert.deepEqual(command.points, [{id: "row-1", longitude: 120, latitude: 30, coordinateSystem: "wgs84"}]);- assert.equal(parseMapCommand({...envelope, type: "init"}, instanceID, "amap"), undefined);- assert.equal(parseMapCommand({...envelope, type: "navigate", url: "https://example.com"}, instanceID, "amap"), undefined);- assert.equal(parseMapCommand({...envelope, type: "setPoints", revision: -1, points: []}, instanceID, "amap"), undefined);+ {...point, id: "bad-lat", latitude: 90}, {...point, id: "bad-lon", longitude: 181}]}, instanceID);+ assert.deepEqual(command.points, [{id: "row-1", longitude: 120, latitude: 30}]);+ assert.equal(parseMapCommand({...envelope, type: "init"}, instanceID), undefined);+ assert.equal(parseMapCommand({...envelope, type: "navigate", url: "https://example.com"}, instanceID), undefined);+ assert.equal(parseMapCommand({...envelope, type: "setPoints", revision: -1, points: []}, instanceID), undefined);assert.equal(parseMapReply({...envelope, type: "error", code: "readFile"}, instanceID), undefined);assert.deepEqual(parseMapReply({...envelope, type: "bootstrapReady", url: "bad"}, instanceID), {...envelope, type: "bootstrapReady"});});-test("point count is bounded and provider coordinate systems remain consistent", () => {- const points = Array.from({length: 10010}, (_, index) => ({id: "row-" + index, longitude: 10, latitude: 20, coordinateSystem: "bd09"}));- assert.equal(parseMapCommand({...envelope, type: "setPoints", revision: 0, points}, instanceID, "baidu").points.length, 10000);- assert.equal(parseMapCommand({...envelope, type: "setPoints", revision: 0, points}, instanceID, "amap").points.length, 0);+test("obsolete coordinate-system point messages are rejected rather than reinterpreted", () => {+ for (const coordinateSystem of ["wgs84", "gcj02", "bd09", "unknown", "", undefined]) {+ const points = [{id: "row", longitude: 120, latitude: 30, coordinateSystem}];+ assert.deepEqual(parseMapCommand({...envelope, type: "setPoints", revision: 0, points}, instanceID).points, []);+ }+});++test("WGS84 points keep finite world bounds, the Mercator latitude limit and the point count limit", () => {+ const points = Array.from({length: 10010}, (_, index) => ({id: "row-" + index, longitude: 10, latitude: 20}));+ assert.equal(parseMapCommand({...envelope, type: "setPoints", revision: 0, points}, instanceID).points.length, 10000);+ const limit = 85.0511287798066;+ const bounds = [{id: "west", longitude: -180, latitude: -limit}, {id: "east", longitude: 180, latitude: limit}];+ for (const [longitude, latitude] of [[-181, 0], [181, 0], [0, -limit - 1e-10], [0, limit + 1e-10],+ [0, -90], [0, 90], [NaN, 0], [0, NaN], [Infinity, 0], [0, -Infinity], ["10", 20]]) {+ bounds.push({id: "invalid-" + bounds.length, longitude, latitude});+ }+ assert.deepEqual(parseMapCommand({...envelope, type: "setPoints", revision: 0, points: bounds}, instanceID).points,+ bounds.slice(0, 2));});test("map loading failures retain only fixed stage codes across the desktop boundary", () => {- for (const code of ["sdkScriptLoadFailed", "sdkCallbackTimeout", "sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout"]) {+ for (const code of ["sdkScriptLoadFailed", "sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout"]) {assert.deepEqual(parseMapReply({...envelope, type: "error", code, message: "https://private.invalid/?key=secret",stack: "secret"}, instanceID), {...envelope, type: "error", code});}@@ -86,7 +98,8 @@ test("host failure replies preserve fixed reasons and reject invented or foreignassert.equal(parseMapReply(reply, "other"), undefined);assert.equal(parseMapReply({...reply, version: 2}, instanceID), undefined);}- for (const code of ["hostSecret", "hostLimitReached\nprivate", "https://private.invalid/?key=secret", null, {}]) {+ for (const code of ["missingCredentials", "sdkCallbackTimeout", "hostSecret", "hostLimitReached\nprivate",+ "https://private.invalid/?key=secret", null, {}]) {assert.equal(parseMapReply({...envelope, type: "error", code}, instanceID), undefined);}});@@ -102,50 +115,32 @@ test("map creation fails closed for effective process security bypasses", () =>assert.equal(hasUnsafeMapSwitches(commandLine(new Map([["disable-features", "AutoupgradeMixedContent"]]))), false);});-test("bootstrap CSP has sandbox isolation and only fixed local assets plus the selected provider", () => {- const csp = createMapContentSecurityPolicy(origin, "openfreemap");+test("bootstrap CSP has sandbox isolation and only fixed local assets plus OpenFreeMap", () => {+ const csp = createMapContentSecurityPolicy(origin);assert.match(csp, /sandbox allow-scripts;/);assert.match(csp, /frame-src 'none'/);assert.match(csp, /form-action 'none'/);assert.match(csp, /frame-ancestors 'none'/);assert.ok(!csp.includes("allow-same-origin"));assert.ok(!csp.includes("unsafe-eval"));- assert.ok(!csp.includes("amap.com"));- assert.throws(() => createMapContentSecurityPolicy("http://example.com/a", "openfreemap"));+ assert.doesNotMatch(csp, /amap|autonavi|qq\.com|baidu|bdimg|alicdn|taobao/);+ assert.throws(() => createMapContentSecurityPolicy("http://example.com/a"));});-test("AMap permits only approved script and connection origins with isolated blob workers", () => {- const csp = createMapContentSecurityPolicy(origin, "amap");+test("OpenFreeMap CSP scopes bundled scripts, worker, styles and tile requests to their exact sources", () => {+ const csp = createMapContentSecurityPolicy(origin);const directives = Object.fromEntries(csp.split(";").filter(value => value.trim()).map(value => {const [name, ...sources] = value.trim().split(/\s+/);return [name, sources];}));- assert.deepEqual(directives["script-src"], [origin + "/stage/build/map/host.js", "https://webapi.amap.com", "https://restapi.amap.com", "https://jsapi-service.amap.com"]);+ assert.deepEqual(directives["script-src"], [origin + "/stage/build/map/host.js", origin + "/stage/build/map/maplibre-gl.js"]);assert.deepEqual(directives["worker-src"], ["blob:"]);- assert.deepEqual(directives["connect-src"], ["https://webapi.amap.com", "https://restapi.amap.com", "https://vdata.amap.com", "https://jsapi.amap.com"]);+ assert.deepEqual(directives["connect-src"], ["https://tiles.openfreemap.org", origin + "/stage/build/map/maplibre-gl-csp-worker.js"]);+ assert.deepEqual(directives["img-src"], ["data:", "blob:", "https://tiles.openfreemap.org"]);+ assert.deepEqual(directives["style-src"], ["'unsafe-inline'", origin + "/stage/map/host.css", origin + "/stage/build/map/maplibre-gl.css"]);assert.deepEqual(directives["frame-src"], ["'none'"]);assert.deepEqual(directives.sandbox, ["allow-scripts"]);- for (const host of ["jsapi.amap.com", "jsapi-service.amap.com"]) {- assert.equal(getMapRequestPolicy("https://" + host + "/resource", "GET", origin, "amap").type, "provider");- for (const url of ["http://" + host + "/", "https://" + host + ":8443/", "https://user@" + host + "/",- "https://" + host + ".example/", "https://sub." + host + "/"]) {- assert.equal(getMapRequestPolicy(url, "GET", origin, "amap"), undefined);- }- for (const provider of ["openfreemap", "tencent", "baidu"]) {- assert.equal(getMapRequestPolicy("https://" + host + "/", "GET", origin, provider), undefined);- assert.equal(createMapContentSecurityPolicy(origin, provider).includes(host), false);- }- }- assert.equal(directives["script-src"].includes("https://jsapi.amap.com"), false);- assert.equal(directives["connect-src"].includes("https://jsapi-service.amap.com"), false);- for (const value of ["https://unknown.example/a", "http://restapi.amap.com/a", origin + "/api/system/getConf", "file:///tmp/a"]) {- assert.equal(getMapRequestPolicy(value, "GET", origin, "amap"), undefined);- }- for (const provider of ["tencent", "baidu"]) {- const policy = createMapContentSecurityPolicy(origin, provider);- assert.match(policy, /worker-src 'none'/);- assert.ok(!policy.includes("restapi.amap.com"));- }+ assert.equal(getMapRequestPolicy("https://tiles.openfreemap.org/resource", "GET", origin).type, "provider");});test("native geometry converts CSS to DIP, crops inward, and denies off-window or malformed bounds", () => {diff --git a/app/electron/mapHostPreload.js b/app/electron/mapHostPreload.jsindex 68fc8549e7..048c70f6ad 100644--- a/app/electron/mapHostPreload.js+++ b/app/electron/mapHostPreload.js@@ -10,7 +10,7 @@ if (process.isMainFrame) {ipcRenderer.once("siyuan-map-port", (event, data) => {if (data?.version !== 1 || !/^[a-f0-9]{48}$/.test(data.instanceID || "") ||!/^[a-f0-9]{48}$/.test(data.nonce || "") || event.ports.length !== 1 ||- !["openfreemap", "amap", "tencent", "baidu"].includes(data.provider)) {+ data.provider !== "openfreemap") {event.ports.forEach(port => port.close());return;}diff --git a/app/electron/mapHostPreload.test.js b/app/electron/mapHostPreload.test.jsindex 6f93aae424..d31bc6230b 100644--- a/app/electron/mapHostPreload.test.js+++ b/app/electron/mapHostPreload.test.js@@ -41,6 +41,17 @@ test("invalid port metadata closes the port and subframes receive no capability"assert.deepEqual(subframe.exposed, {}); assert.deepEqual(subframe.listeners, {});});+test("the transferred map port only admits the fixed OpenFreeMap provider", () => {+ for (const provider of ["amap", "tencent", "baidu", "__proto__", undefined]) {+ const s = setup(); let closed = false;+ s.listeners["siyuan-map-port"]({ports: [{close() { closed = true; }}]}, {+ version: 1, instanceID: "a".repeat(48), nonce: "b".repeat(48), provider,+ });+ assert.equal(closed, true);+ assert.equal(s.posted.length, 0);+ }+});+test("viewport accepts only bounded numeric dimensions and crop, without exposing IPC", () => {const s = setup();s.listeners["siyuan-map-viewport"]({}, {logicalSize: {width: 500, height: 400}, crop: {x: 20, y: 40}});diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na.syindex f33c469746..87f8561d0e 100644--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na.sy+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na.sy@@ -7,7 +7,7 @@"id": "20240208172514-9dsv6na","title": "Database","type": "doc",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{@@ -74,7 +74,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009034010-6kd9rk5",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{@@ -88,12 +88,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-0yhiv8g",- "updated": "20261009111821"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "Add a field of type Location, then click a cell to edit its name and coordinates. The name is optional. Enter both longitude and latitude in decimal degrees. Longitude ranges from -180 to 180 and latitude from -90 to 90; zero is a valid value. Leave both coordinates blank to save only a name. In the field settings, Default coordinate system for new input only presets new input; existing locations stay unchanged, each value can choose its own coordinate system, and copied or imported locations retain their saved coordinate system. Existing locations without a labeled coordinate system are preserved as saved; when editing, explicitly select the coordinate system actually used by their coordinates. Coordinates are not converted automatically."+ "Data": "Add a field of type Location, then click a cell to edit its optional name and WGS84 coordinates. Enter both longitude and latitude in decimal degrees. Longitude ranges from -180 to 180 and latitude from -90 to 90; zero is valid. Leave both coordinates blank to save only a name. Coordinates are not converted automatically."}]},@@ -102,12 +102,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-h9vridq",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "Enter longitude and latitude in their separate fields, for example longitude 116.4074 and latitude 39.9042. Choose WGS84 (OpenFreeMap), GCJ-02 (AMap, Tencent Maps), or BD-09 (Baidu Maps) for the coordinate system; changing this label does not convert coordinates. Source text retained by previously saved locations stays unchanged when you only edit the name. Manually changing the coordinates or coordinate system clears that source text."+ "Data": "Enter longitude and latitude in their separate fields, for example longitude 116.4074 and latitude 39.9042. Source text stays unchanged when you only edit the name. Manually changing the coordinates clears that source text."}]},@@ -116,43 +116,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-dub50kq",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "Click Save to apply edits or Cancel to discard them. Clear removes the location value. Text filters and sorting use the combined name, coordinates, and coordinate-system label. This field does not load maps or contact external location services. Coordinates are displayed in longitude, latitude order in the app. Plain-text copying and export keep latitude, longitude; to reuse those coordinates, enter each value in its corresponding field in the location editor. Structured database copying preserves named coordinate values. Named JSON fields and previously saved locations are unchanged."- },- {- "Type": "NodeText",- "Data": " Press "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Ctrl+Enter"- },- {- "Type": "NodeText",- "Data": " ("- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Cmd+Enter"- },- {- "Type": "NodeText",- "Data": " on macOS) to save, or "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Esc"- },- {- "Type": "NodeText",- "Data": " to cancel. Update SiYuan to a compatible version on every device before using a database with Location fields; older kernels cannot open these databases."+ "Data": "Click Save to apply edits or Cancel to discard them. Clear removes the location value. Text filters and sorting use the combined name, coordinates, and fixed WGS84 label. This field does not contact external location services. The app displays longitude, latitude; plain-text copying and export use latitude, longitude. Structured database copying preserves the named latitude and longitude values."}]},@@ -3948,7 +3917,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009050034-byowtq3",- "updated": "20261009075700"+ "updated": "20261010064719"},"Children": [{@@ -3962,30 +3931,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-yqulacv",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "Add a map service in "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Settings"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Map"- },- {- "Type": "NodeText",- "Data": ", then create a Map view and choose a map service and Location field in its view settings. Map views do not show a record list; switch to a Table view to browse or edit records. Services are stored on the current device; each view saves only a service ID. On another device, explicitly add the same ID to restore the reference, or choose another service"+ "Data": "Create a Map view and select a Location field in its view settings. The map uses built-in OpenFreeMap. Map views do not show a record list; switch to a Table view to browse or edit records."}]},@@ -3994,12 +3945,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-2ja6x7k",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "AMap requires a Web JS API key and security code, Tencent Maps requires a key, and Baidu Maps requires a browser AK with JS API access. OpenFreeMap requires no key. Filled configuration fields do not prove service access, commercial eligibility, quotas, domain restrictions, or regional availability. Confirm these with the provider before use"+ "Data": "OpenFreeMap requires no API key or global service configuration. Keep the map's provider and data attribution visible."}]},@@ -4008,12 +3959,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-w0l8ys9",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "The map uses the original coordinates and their declared coordinate system: OpenFreeMap uses WGS84, AMap and Tencent Maps use GCJ-02, and Baidu Maps uses BD-09 or its supported GCJ-02 marker option. Unknown or incompatible systems are counted and skipped; the map never guesses, converts, or overwrites the saved values. OpenFreeMap and AMap use Web Mercator: latitudes beyond ±85.0511287798066° are valid stored coordinates but are skipped with a separate unsupported-projection count rather than silently clamped"+ "Data": "The map displays WGS84 coordinates without conversion. OpenFreeMap uses Web Mercator: latitudes beyond ±85.0511287798066° are valid stored coordinates but are skipped with an unsupported-projection count rather than silently clamped."}]},@@ -4036,12 +3987,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-x0kdedj",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "Map services use an external network connection. Only the selected service receives its runtime credentials, coordinates, and opaque record IDs; record titles and full contents are not passed to the map host. Browser SDK credentials are visible to the authorized browser and provider. Configuration exports omit map services and credentials; published pages do not load a live map, and document exports retain a table of records"+ "Data": "Maps require an external network connection. The isolated map page receives coordinates and opaque record IDs, but no record titles or full contents. Published pages do not load a live map, and document exports retain a table of records."}]},@@ -4050,12 +4001,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-wflckkb",- "updated": "20261009075700"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "The host follows the app theme. AMap also switches its basemap theme, and Baidu switches control appearance; OpenFreeMap and Tencent Maps currently retain their default basemap styles. Maps run in isolated Web pages. Desktop clients use a separate secure host; mobile clients require a matching app shell that restricts native bridges and navigation to trusted documents. Older shells or clients unable to establish these boundaries do not load maps. Desktop maps follow page scrolling and clip the area covered by sticky tabs. They may hide temporarily when menus or dialogs overlap them. When offline, unconfigured, incompatible with WebGL, or unable to load a provider, switch to a Table view to access records. Address search, geocoding, route planning, and clicking the map to write a location are not provided. Maps are also unavailable when authentication bypass is enabled; records remain accessible in a Table view"+ "Data": "The host follows the app theme; the basemap keeps its default style. Maps run in isolated Web pages. Desktop clients use a separate secure host; mobile clients require an app shell that restricts native bridges and navigation to trusted documents. Maps do not load if these boundaries cannot be established. Desktop maps follow page scrolling and clip areas covered by sticky tabs; menus or dialogs may hide them temporarily. When offline, incompatible with WebGL, unable to load the map, or using authentication bypass, switch to a Table view to access records. Address search, geocoding, routing, and clicking the map to save a location are not provided."}]},diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq.syindex b68d5598fd..e6bc9cd344 100644--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq.sy+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq.sy@@ -7,7 +7,7 @@"id": "20240208113259-nykkvaq","title": "数据库","type": "doc",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{@@ -74,7 +74,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009034010-m7nwg3o",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{@@ -88,12 +88,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-8ihp92l",- "updated": "20261009111821"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "添加类型为「位置」的字段后,点击单元格编辑名称和坐标。名称可留空。经度和纬度须成对填写,使用十进制度数。经度范围为 -180 到 180,纬度范围为 -90 到 90,零是有效值。将两个坐标都留空时,可仅保存名称。字段设置中的「新录入默认坐标系」仅用于新录入的位置;已有位置保持不变,每个值仍可单独选择坐标系,复制或导入的位置保留其已保存的坐标系。已有未标注坐标系的位置按原值保留;编辑时需明确选择坐标实际使用的坐标系,不会自动转换坐标。"+ "Data": "添加类型为「位置」的字段后,点击单元格编辑名称和 WGS84 坐标。名称可留空。经度和纬度须成对填写,使用十进制度数。经度范围为 -180 到 180,纬度范围为 -90 到 90,零是有效值。将两个坐标都留空时,可仅保存名称。坐标不会自动转换。"}]},@@ -102,12 +102,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-grvs8hv",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "请在经度和纬度输入框中分别填写坐标,例如经度 116.4074、纬度 39.9042。坐标系可选择 WGS84(OpenFreeMap)、GCJ-02(高德、腾讯)或 BD-09(百度);修改此标记不会转换坐标。已有位置保留的来源文本在仅修改名称时保持不变,手动修改坐标或坐标系会清除该来源文本。"+ "Data": "请在经度和纬度输入框中分别填写坐标,例如经度 116.4074、纬度 39.9042。仅修改名称时,保留的来源文本保持不变;手动修改坐标会清除来源文本。"}]},@@ -116,43 +116,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-kag8uox",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "点击「保存」应用修改,点击「取消」放弃修改,「清空」会移除位置值。文本过滤和排序使用名称、坐标及坐标系标记组合后的文本。此字段不加载地图,也不调用外部位置服务。应用内按经度、纬度顺序显示坐标。纯文本复制和导出仍使用纬度、经度顺序;复用这些坐标时,请在位置编辑器的对应输入框中分别填写经度和纬度。数据库内的结构化复制保留经纬度各自的值,JSON 命名字段和已保存的位置均保持不变。"- },- {- "Type": "NodeText",- "Data": "也可按 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Ctrl+Enter"- },- {- "Type": "NodeText",- "Data": "(macOS 上为 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Cmd+Enter"- },- {- "Type": "NodeText",- "Data": ")保存,按 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Esc"- },- {- "Type": "NodeText",- "Data": " 取消。使用包含「位置」字段的数据库前,请将所有设备上的思源更新到兼容版本;旧版内核无法打开此类数据库。"+ "Data": "点击「保存」应用修改,点击「取消」放弃修改,「清空」会移除位置值。文本过滤和排序使用名称、坐标及固定 WGS84 标记组合后的文本。此字段不调用外部位置服务。应用内按经度、纬度顺序显示;纯文本复制和导出使用纬度、经度顺序。数据库内的结构化复制保留经纬度各自的命名字段值。"}]},@@ -3948,7 +3917,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009050034-dfwj4cb",- "updated": "20261009075700"+ "updated": "20261010064719"},"Children": [{@@ -3962,30 +3931,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-dz1fw4j",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "在 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "设置"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "地图"- },- {- "Type": "NodeText",- "Data": " 中添加地图服务,再创建地图视图,并在视图设置中选择地图服务和位置字段。地图视图不显示记录列表;需要浏览或编辑记录时,可切换到表格视图。服务保存在当前设备,每个视图仅保存服务 ID;在其他设备上使用时,需明确添加相同 ID 恢复引用,或选择另一项服务"+ "Data": "创建地图视图后,在视图设置中选择位置字段即可。地图直接使用内置 OpenFreeMap。地图视图不显示记录列表;需要浏览或编辑记录时,可切换到表格视图。"}]},@@ -3994,12 +3945,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-f3814by",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "高德地图需要 Web JS API Key 和安全密钥,腾讯地图需要 Key,百度地图需要开通 JS API 权限的浏览器 AK,OpenFreeMap 不需要 Key。配置字段已填写不代表服务访问、商业资格、配额、域名限制或地区可用性已经验证,使用前请向提供商确认"+ "Data": "OpenFreeMap 不需要 API Key 或全局服务配置。请保留地图上的提供商和地图数据署名。"}]},@@ -4008,12 +3959,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-lipfkdw",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "地图使用保存的原始坐标及其声明的坐标系:OpenFreeMap 使用 WGS84,高德和腾讯使用 GCJ-02,百度使用 BD-09 或其支持的 GCJ-02 标记选项。未知或不兼容的坐标系会计数并跳过,不猜测、不转换,也不覆盖已保存的值。OpenFreeMap 和高德地图使用墨卡托投影,纬度超出 ±85.0511287798066° 的合法位置会保留原值并单独计入投影不支持数量,不会静默裁切"+ "Data": "地图显示 WGS84 坐标,不进行转换。OpenFreeMap 使用墨卡托投影,纬度超出 ±85.0511287798066° 的合法位置会保留原值并计入投影不支持数量,不会静默裁切。"}]},@@ -4036,12 +3987,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-rrjk1eg",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "地图服务需要外部网络连接。隔离的地图页面只获得选中服务的运行时凭据、坐标和不含正文的记录 ID,不接收记录标题或完整内容。浏览器 SDK 凭据对获授权的浏览器和提供商可见。配置导出不包含地图服务和凭据,发布页面不加载实时地图,文档导出保留记录表格"+ "Data": "地图需要外部网络连接。隔离的地图页面仅接收坐标和不含正文的记录 ID,不接收记录标题或完整内容。发布页面不加载实时地图,文档导出保留记录表格。"}]},@@ -4050,12 +4001,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-wy69fcu",- "updated": "20261009075700"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "宿主配色跟随应用主题;高德同时切换底图主题,百度切换控件主题,OpenFreeMap 和腾讯目前保留默认底图样式。地图通过隔离的 Web 页面运行;桌面客户端使用独立的安全宿主,移动客户端需配套支持可信主文档桥接和导航限制的外壳。旧版外壳或无法建立隔离边界时不加载地图。桌面地图会随页面滚动并裁剪吸顶栏覆盖的区域,菜单或对话框遮挡时可能暂时隐藏。离线、未配置、WebGL 不兼容或服务加载失败时,可切换到表格视图访问记录。本功能不提供地址搜索、地理编码、路线规划或点击地图写入位置。启用鉴权绕过模式时也无法使用地图,可切换到表格视图访问记录"+ "Data": "宿主配色跟随应用主题,底图保留默认样式。地图通过隔离的 Web 页面运行;桌面客户端使用独立的安全宿主,移动客户端需搭配限制原生桥和导航仅用于可信主文档的外壳。无法建立隔离边界时不加载地图。桌面地图随页面滚动并裁剪吸顶栏覆盖的区域,菜单或对话框遮挡时可能暂时隐藏。离线、WebGL 不兼容、地图加载失败或启用鉴权绕过模式时,可切换到表格视图访问记录。本功能不提供地址搜索、地理编码、路线规划或点击地图保存位置。"}]},diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno.syindex 6a8cbb9adc..3114857991 100644--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno.sy+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno.sy@@ -7,7 +7,7 @@"id": "20240208171522-y7dxcno","title": "資料庫","type": "doc",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{@@ -74,7 +74,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009034010-5oq6h7a",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{@@ -88,12 +88,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-m2e4n60",- "updated": "20261009111821"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "新增類型為「位置」的欄位後,點擊儲存格編輯名稱和座標。名稱可留空。經度和緯度須成對填寫,使用十進位度數。經度範圍為 -180 到 180,緯度範圍為 -90 到 90,零是有效值。將兩個座標都留空時,可僅保存名稱。欄位設定中的「新輸入預設座標系」僅用於新輸入的位置;既有位置保持不變,每個值仍可單獨選擇座標系,複製或匯入的位置保留其已保存的座標系。既有未標註座標系的位置按原值保留;編輯時需明確選擇座標實際使用的座標系,不會自動轉換座標。"+ "Data": "新增類型為「位置」的欄位後,點擊儲存格編輯名稱和 WGS84 座標。名稱可留空。經度和緯度須成對填寫,使用十進位度數。經度範圍為 -180 到 180,緯度範圍為 -90 到 90,零是有效值。將兩個座標都留空時,可僅儲存名稱。座標不會自動轉換。"}]},@@ -102,12 +102,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-ue87c6m",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "請在經度和緯度輸入框中分別填寫座標,例如經度 116.4074、緯度 39.9042。座標系可選擇 WGS84(OpenFreeMap)、GCJ-02(高德、騰訊)或 BD-09(百度);修改此標記不會轉換座標。既有位置保留的來源文字在僅修改名稱時保持不變,手動修改座標或座標系會清除該來源文字。"+ "Data": "請在經度和緯度輸入框中分別填寫座標,例如經度 116.4074、緯度 39.9042。僅修改名稱時,保留的來源文字維持不變;手動修改座標會清除來源文字。"}]},@@ -116,43 +116,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-g7jsd2p",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "點擊「保存」套用修改,點擊「取消」放棄修改,「清空」會移除位置值。文字過濾和排序使用名稱、座標及座標系標記組合後的文字。此欄位不載入地圖,也不呼叫外部位置服務。應用程式內依經度、緯度順序顯示座標。純文字複製和匯出仍使用緯度、經度順序;重用這些座標時,請在位置編輯器的對應輸入框中分別填寫經度和緯度。資料庫內的結構化複製保留經緯度各自的值,JSON 具名欄位和已儲存的位置均保持不變。"- },- {- "Type": "NodeText",- "Data": "也可按 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Ctrl+Enter"- },- {- "Type": "NodeText",- "Data": "(macOS 上為 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Cmd+Enter"- },- {- "Type": "NodeText",- "Data": ")保存,按 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Esc"- },- {- "Type": "NodeText",- "Data": " 取消。使用包含「位置」欄位的資料庫前,請將所有裝置上的思源更新到相容版本;舊版核心無法開啟此類資料庫。"+ "Data": "點擊「保存」套用修改,點擊「取消」放棄修改,「清空」會移除位置值。文字過濾和排序使用名稱、座標及固定 WGS84 標記組合後的文字。此欄位不呼叫外部位置服務。應用程式內依經度、緯度順序顯示;純文字複製和匯出使用緯度、經度順序。資料庫內的結構化複製保留經緯度各自的具名欄位值。"}]},@@ -3948,7 +3917,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009050034-7n1yzkx",- "updated": "20261009075700"+ "updated": "20261010064719"},"Children": [{@@ -3962,30 +3931,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-ctek3na",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "在 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "設定"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "地圖"- },- {- "Type": "NodeText",- "Data": " 中新增地圖服務,再建立地圖檢視,並在檢視設定中選擇地圖服務和位置欄位。地圖檢視不顯示記錄清單;需要瀏覽或編輯記錄時,可切換到表格檢視。服務儲存在目前裝置,每個檢視僅儲存服務 ID;在其他裝置使用時,需明確新增相同 ID 恢復引用,或選擇另一項服務"+ "Data": "建立地圖檢視後,在檢視設定中選擇位置欄位即可。地圖直接使用內建 OpenFreeMap。地圖檢視不顯示記錄清單;需要瀏覽或編輯記錄時,可切換到表格檢視。"}]},@@ -3994,12 +3945,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-ezfsjzw",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "高德地圖需要 Web JS API Key 和安全金鑰,騰訊地圖需要 Key,百度地圖需要開通 JS API 權限的瀏覽器 AK,OpenFreeMap 不需要 Key。配置欄位已填寫不代表服務存取、商業資格、配額、網域限制或地區可用性已經驗證,使用前請向提供商確認"+ "Data": "OpenFreeMap 不需要 API Key 或全域服務設定。請保留地圖上的提供商和地圖資料署名。"}]},@@ -4008,12 +3959,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-0pe5w4a",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "地圖使用儲存的原始座標及其宣告的座標系:OpenFreeMap 使用 WGS84,高德和騰訊使用 GCJ-02,百度使用 BD-09 或其支援的 GCJ-02 標記選項。未知或不相容的座標系會計數並跳過,不猜測、不轉換,也不覆寫已儲存的值。OpenFreeMap 和高德地圖使用麥卡托投影,緯度超出 ±85.0511287798066° 的合法位置會保留原值並單獨計入投影不支援數量,不會靜默裁切"+ "Data": "地圖顯示 WGS84 座標,不進行轉換。OpenFreeMap 使用麥卡托投影,緯度超出 ±85.0511287798066° 的合法位置會保留原值並計入投影不支援數量,不會靜默裁切。"}]},@@ -4036,12 +3987,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-fadq3xu",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "地圖服務需要外部網路連線。隔離的地圖頁面只取得所選服務的執行階段憑據、座標和不含正文的記錄 ID,不接收記錄標題或完整內容。瀏覽器 SDK 憑據對獲授權的瀏覽器和提供商可見。配置匯出不包含地圖服務和憑據,發佈頁面不載入即時地圖,文件匯出保留記錄表格"+ "Data": "地圖需要外部網路連線。隔離的地圖頁面僅接收座標和不含正文的記錄 ID,不接收記錄標題或完整內容。發佈頁面不載入即時地圖,文件匯出保留記錄表格。"}]},@@ -4050,12 +4001,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-8jfc6yh",- "updated": "20261009075700"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "宿主配色跟隨應用程式主題;高德同時切換底圖主題,百度切換控制項主題,OpenFreeMap 和騰訊目前保留預設底圖樣式。地圖透過隔離的 Web 頁面執行;桌面客戶端使用獨立的安全宿主,行動客戶端需搭配支援可信主文件橋接與導覽限制的外殼。舊版外殼或無法建立隔離邊界時不載入地圖。桌面地圖會隨頁面捲動並裁剪置頂分頁列覆蓋的區域,選單或對話方塊遮擋時可能暫時隱藏。離線、未配置、WebGL 不相容或服務載入失敗時,可切換到表格視圖存取記錄。本功能不提供地址搜尋、地理編碼、路線規劃或點擊地圖寫入位置。啟用鑑權繞過模式時也無法使用地圖,可切換到表格視圖存取記錄"+ "Data": "宿主配色跟隨應用程式主題,底圖保留預設樣式。地圖透過隔離的 Web 頁面執行;桌面客戶端使用獨立的安全宿主,行動客戶端需搭配限制原生橋和導覽僅用於可信主文件的外殼。無法建立隔離邊界時不載入地圖。桌面地圖隨頁面捲動並裁剪置頂分頁列覆蓋的區域,選單或對話方塊遮擋時可能暫時隱藏。離線、WebGL 不相容、地圖載入失敗或啟用鑑權繞過模式時,可切換到表格檢視存取記錄。本功能不提供地址搜尋、地理編碼、路線規劃或點擊地圖儲存位置。"}]},diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp.syindex 6519a8b8c0..7f39a75c14 100644--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp.sy+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp.sy@@ -8,7 +8,7 @@"id": "20240530101000-3eaevtp","title": "データベース","type": "doc",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{@@ -75,7 +75,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009034010-6j4iniw",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{@@ -89,12 +89,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-x0x9tob",- "updated": "20261009111821"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "「位置」タイプのフィールドを追加し、セルをクリックして名前と座標を編集します。名前は省略できます。経度と緯度は十進数の度数で、必ず両方を指定します。経度は -180 から 180、緯度は -90 から 90 の範囲で、ゼロも有効な値です。両方の座標を空欄にすると、名前だけを保存できます。フィールド設定の「新規入力の既定の座標系」は新しく入力する位置にのみ適用され、既存の位置は変更されず、各値の座標系は個別に選択でき、コピーまたはインポートした位置では保存済みの座標系が維持されます。座標系が設定されていない既存の位置は保存された値のまま保持されます。編集時には座標が実際に使用している座標系を明示的に選択してください。座標は自動変換されません。"+ "Data": "「位置」タイプのフィールドを追加し、セルをクリックして名前と WGS84 座標を編集します。名前は省略できます。経度と緯度は十進数の度数で両方を指定します。経度は -180 から 180、緯度は -90 から 90 の範囲で、ゼロも有効です。両方の座標を空欄にすると、名前だけを保存できます。座標は自動変換されません。"}]},@@ -103,12 +103,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-1609sdo",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "経度と緯度は、それぞれの入力欄に入力してください。例えば、経度には 116.4074、緯度には 39.9042 を入力します。座標系には WGS84(OpenFreeMap)、GCJ-02(AMap、Tencent Maps)、BD-09(Baidu Maps)を選択できますが、このラベルを変更しても座標は変換されません。保存済みの位置に保持されている出典テキストは、名前だけを変更した場合はそのまま残ります。座標または座標系を手動で変更すると、この出典テキストは消去されます。"+ "Data": "経度と緯度は、それぞれの入力欄に入力してください。例えば、経度には 116.4074、緯度には 39.9042 を入力します。名前だけを変更すると出典テキストは保持されます。座標を手動で変更すると、出典テキストは消去されます。"}]},@@ -117,43 +117,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-fry67po",- "updated": "20261009171730"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "「保存」で変更を適用し、「キャンセル」で変更を破棄します。「消去」は位置の値を削除します。テキストのフィルターとソートには、名前、座標、座標系のラベルを組み合わせたテキストを使用します。このフィールドは地図を読み込まず、外部の位置情報サービスにも接続しません。アプリ内では経度、緯度の順に座標を表示します。プレーンテキストのコピーとエクスポートでは緯度、経度の順序を維持します。これらの座標を再利用するには、位置エディターの対応する入力欄に経度と緯度をそれぞれ入力してください。データベース内の構造化されたコピーでは、経度と緯度それぞれの値を保持します。JSON の名前付きフィールドと保存済みの位置は変更されません。"- },- {- "Type": "NodeText",- "Data": "保存には "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Ctrl+Enter"- },- {- "Type": "NodeText",- "Data": "(macOS では "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Cmd+Enter"- },- {- "Type": "NodeText",- "Data": ")、キャンセルには "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Esc"- },- {- "Type": "NodeText",- "Data": " も使用できます。「位置」フィールドを含むデータベースを使用する前に、すべての端末の SiYuan を対応バージョンに更新してください。古いカーネルでは、このデータベースを開けません。"+ "Data": "「保存」で変更を適用し、「キャンセル」で破棄します。「消去」は位置の値を削除します。テキストのフィルターとソートには、名前、座標、固定の WGS84 ラベルを組み合わせたテキストを使用します。このフィールドは外部の位置情報サービスに接続しません。アプリ内では経度、緯度の順に表示し、プレーンテキストのコピーとエクスポートでは緯度、経度の順に出力します。データベース内の構造化コピーは、経度と緯度それぞれの名前付きフィールドの値を保持します。"}]},@@ -3958,7 +3927,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009050034-lzsqdz2",- "updated": "20261009075700"+ "updated": "20261010064719"},"Children": [{@@ -3972,26 +3941,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-xn4up1k",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "設定"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "マップ"- },{"Type": "NodeText",- "Data": " で地図サービスを追加してから、マップビューを作成し、ビューの設定で地図サービスと位置フィールドを選択します。サービスは現在の端末に保存され、各ビューにはサービス ID だけが保存されます。別の端末では同じ ID を明示的に追加して参照を復元するか、別のサービスを選択します"+ "Data": "マップビューを作成し、ビューの設定で位置フィールドを選択します。地図には組み込みの OpenFreeMap を使用します。マップビューにはレコード一覧を表示しません。レコードの閲覧や編集にはテーブルビューを使用してください。"}]},@@ -4000,12 +3955,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-5nmyptf",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "AMap には Web JS API キーとセキュリティコード、Tencent Maps にはキー、Baidu Maps には JS API 権限のあるブラウザー AK が必要です。OpenFreeMap はキー不要です。設定項目の入力完了は、アクセス、商用利用資格、割り当て、ドメイン制限、地域での利用可否の検証を意味しません。使用前に提供元へ確認してください"+ "Data": "OpenFreeMap に API キーやグローバルなサービス設定は不要です。地図の提供元とデータの帰属表示は残してください。"}]},@@ -4014,12 +3969,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-m26635d",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "地図は元の座標と宣言された座標系を使用します。OpenFreeMap は WGS84、AMap と Tencent Maps は GCJ-02、Baidu Maps は BD-09 または対応する GCJ-02 マーカーオプションを使用します。不明または非対応の座標系は件数を示して除外し、推測、変換、保存値の上書きは行いません。OpenFreeMap と高徳地図は Web Mercator を使用します。緯度が ±85.0511287798066° を超える位置は有効な保存値ですが、無断で補正せず、投影非対応として別に件数を示して除外します"+ "Data": "地図は WGS84 座標を変換せずに表示します。OpenFreeMap は Web Mercator を使用します。緯度が ±85.0511287798066° を超える位置は有効な保存値ですが、無断で補正せず、投影非対応として件数を示して除外します。"}]},@@ -4042,12 +3997,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-b9sfeey",- "updated": "20261009050034"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "地図サービスは外部ネットワークを使用します。隔離された地図ページに渡すのは、選択したサービスの実行時認証情報、座標、本文を含まないレコード ID だけです。タイトルやレコード全体は渡しません。ブラウザー SDK の認証情報は、許可されたブラウザーと提供元から見えます。設定のエクスポートに地図サービスと認証情報は含まれず、公開ページにはライブ地図を読み込まず、文書のエクスポートにはレコードの表を残します"+ "Data": "地図は外部ネットワークを使用します。隔離された地図ページに渡すのは座標と本文を含まないレコード ID だけで、タイトルやレコード全体は渡しません。公開ページではライブ地図を読み込まず、文書のエクスポートにはレコードの表を残します。"}]},@@ -4056,12 +4011,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009050034-5qz3tt7",- "updated": "20261009075700"+ "updated": "20261010064719"},"Children": [{"Type": "NodeText",- "Data": "ホストの配色はアプリのテーマに従います。AMap はベースマップのテーマも切り替え、Baidu Maps は操作部のテーマを切り替えます。OpenFreeMap と Tencent Maps は現在、既定のベースマップスタイルを維持します。地図は隔離された Web ページで動作します。デスクトップ版は独立した安全なホストを使用し、モバイル版には信頼された主文書だけにネイティブブリッジと画面遷移を許可する対応アプリが必要です。古いアプリや隔離を確立できない環境では地図を読み込みません。地図ビューにレコード一覧は表示されません。レコードの閲覧や編集にはテーブルビューを使用してください。デスクトップでは地図がページのスクロールに追従し、固定タブに重なる部分を切り取ります。メニューやダイアログが重なる間は一時的に非表示になる場合があります。オフライン、未設定、WebGL 非対応、サービスの読み込み失敗時は、テーブルビューでレコードを利用できます。住所検索、ジオコーディング、経路案内、地図クリックによる位置の書き込みは提供しません。認証バイパスが有効な場合も地図は利用できませんが、テーブルビューでレコードを引き続き利用できます"+ "Data": "ホストの配色はアプリのテーマに従い、ベースマップは既定のスタイルを維持します。地図は隔離された Web ページで動作します。デスクトップ版は独立した安全なホストを使用し、モバイル版はネイティブブリッジと画面遷移を信頼された主文書に制限するアプリが必要です。隔離を確立できない場合は地図を読み込みません。デスクトップでは地図がスクロールに追従し、固定タブに重なる部分を切り取ります。メニューやダイアログが重なる間は一時的に非表示になる場合があります。オフライン、WebGL 非対応、地図の読み込み失敗、認証バイパスの有効時には、テーブルビューでレコードを利用できます。住所検索、ジオコーディング、経路案内、地図クリックによる位置の保存は提供しません。"}]},diff --git a/app/src/config/index.ts b/app/src/config/index.tsindex fecfbb2c5e..ccd4577c23 100644--- a/app/src/config/index.ts+++ b/app/src/config/index.ts@@ -22,7 +22,6 @@ import type {TSettingTab} from "./setting/tabs";import type {App} from "../index";import {unmountAssetsTab} from "./assets";import {unmountOCRTab} from "./ocr";-import {requestMapServiceConfiguration, unmountMapTab} from "./map";import {getHostCapabilities} from "../util/hostCapabilities";import {unmountWorkspaceStorage} from "./tabs/workspaceStorage";/// #if !MOBILE@@ -78,8 +77,6 @@ export const openSettingDialog = (app: App, initialTab: TSettingTab = "editor")}const ocrRoot = settingDialogRef.element?.querySelector<HTMLElement>('.config__tab-container[data-name="ocr"]');if (ocrRoot) unmountOCRTab(ocrRoot);- const mapRoot = settingDialogRef.element?.querySelector<HTMLElement>('.config__tab-container[data-name="map"]');- if (mapRoot) unmountMapTab(mapRoot);clearSyncTabElement();clearAccessTabElement();const appRoot = settingDialogRef.element?.querySelector<HTMLElement>('.config__tab-container[data-name="app"]');@@ -132,7 +129,7 @@ export const openPluginSetting = (app: App) => {/// #endif};-export const openSetting = (app: App, tab?: TSettingTab, options?: {aiProvider?: "chatgpt"; missingMapServiceID?: string}) => {+export const openSetting = (app: App, tab?: TSettingTab, options?: {aiProvider?: "chatgpt"}) => {const aiProvider = options?.aiProvider;if (tab === "bazaar" && !isBazaarAvailable()) {return;@@ -141,7 +138,7 @@ export const openSetting = (app: App, tab?: TSettingTab, options?: {aiProvider?:return;}/// #if MOBILE- openMobileSetting(app, tab, undefined, options?.missingMapServiceID);+ openMobileSetting(app, tab);if (aiProvider === "chatgpt") { openChatGPTProvider(); }/// #else/// #if !BROWSER@@ -155,24 +152,16 @@ export const openSetting = (app: App, tab?: TSettingTab, options?: {aiProvider?:const dialog = window.siyuan.dialogs.find(item => item.element.getAttribute("data-key") === Constants.DIALOG_SETTING);if (dialog) {switchSettingTab(dialog.element, app, tab || "editor");- if (tab === "map" && options?.missingMapServiceID) {- requestMapServiceConfiguration(dialog.element.querySelector('.config__tab-container[data-name="map"]'), options.missingMapServiceID);- }if (aiProvider === "chatgpt") { openChatGPTProvider(); }return dialog;}}const dialog = openSettingDialog(app, tab);- if (tab === "map" && options?.missingMapServiceID) {- requestMapServiceConfiguration(dialog.element.querySelector('.config__tab-container[data-name="map"]'), options.missingMapServiceID);- }if (aiProvider === "chatgpt") { openChatGPTProvider(); }return dialog;/// #endif};-export const openMapSettings = (app: App, missingServiceID?: string) =>- openSetting(app, "map", {missingMapServiceID: missingServiceID});export const openBazaarReadme = async (app: App, bazaarType: TBazaarType, itemName: string, from: "bazaar" | "downloaded") => {if (!isBazaarAvailable()) {diff --git a/app/src/config/map.test.ts b/app/src/config/map.test.tsdeleted file mode 100644index af691fc853..0000000000--- a/app/src/config/map.test.ts+++ /dev/null@@ -1,388 +0,0 @@-import * as assert from "node:assert/strict";-import {readFileSync} from "node:fs";-import {test} from "node:test";-import {runInNewContext} from "node:vm";-import {ModuleKind, ScriptTarget, transpileModule} from "typescript";--const compile = () => transpileModule(readFileSync("src/config/map.ts", "utf8"), {- compilerOptions: {module: ModuleKind.CommonJS, target: ScriptTarget.ES2021},-}).outputText;-const tick = () => new Promise(setImmediate);-const language = new Proxy({}, {get: (_target, key) => String(key)});-const service = (id = "one", provider = "amap") => ({id, name: id, provider,- hasAPIKey: provider !== "openfreemap", hasSecurityCode: provider === "amap", configured: true});-type Service = ReturnType<typeof service>;-type Write = Pick<Service, "id" | "name" | "provider"> & {apiKey?: string; securityCode?: string};-type Backend = {services: Service[]; version: number};--const createPanel = async (initial: Service[] = [service()], missingID?: string, deferInitial = false,- backend: Backend = {services: initial, version: 0}) => {- let deferRead = deferInitial;- let reads = 0;- const requests: string[] = [];- const readRequests: Array<(response: unknown) => void> = [];- const writes: Array<{services: Write[]; expectedRevision: string;- resolve: (response: unknown) => void; reject: (error: Error) => void}> = [];- const messages: string[] = [];- const confirmations: Array<() => void> = [];- const listeners = new Map<string, (event: unknown) => Promise<void> | void>();- const notifications = new Map<string, () => void>();- const fields = ["mapServiceName", "mapAPIKey", "mapSecurityCode", "mapClearAPIKey", "mapClearSecurityCode"];- const buttons = ["mapServiceAdd", "mapServiceSave", "mapServiceCancel", "mapServiceDelete", "mapServiceRetry"];- const selects = ["mapServiceSelect", "mapServiceProvider"];- const controls = Object.fromEntries([...fields, ...buttons, ...selects,- "mapServiceEditor", "mapAPIKeyRow", "mapSecurityCodeRow", "mapServiceStatus"].map(id => {- const classes = new Set<string>();- return [id, {id, value: "", checked: false, disabled: true, readOnly: false, placeholder: "", innerHTML: "",- textContent: "", validationMessage: "", focus() {},- setCustomValidity(message: string) { this.validationMessage = message; },- reportValidity() { return !this.validationMessage; },- closest() { return this; },- classList: {toggle: (name: string, force: boolean) => force ? classes.add(name) : classes.delete(name),- add: (name: string) => classes.add(name), remove: (name: string) => classes.delete(name),- contains: (name: string) => classes.has(name)},- }];- }));- const root = {- dataset: missingID ? {mapServiceID: missingID} : {} as {mapServiceID?: string},- querySelector: (selector: string) => controls[selector.slice(1)],- querySelectorAll: () => [...fields, ...buttons, ...selects].map(id => controls[id]),- addEventListener: (name: string, callback: (event: unknown) => Promise<void>, options: {signal: AbortSignal}) => {- listeners.set(name, callback);- options.signal.addEventListener("abort", () => listeners.delete(name));- },- dispatchEvent: (event: {type: string}) => listeners.get(event.type)?.(event),- };- const config = {readonly: false};- const exports = {} as {mountMapSettings: (root: unknown) => () => void;- requestMapServiceConfiguration: (root: unknown, id: string) => void};- runInNewContext(compile(), {exports, AbortController, CustomEvent: class {constructor(public type: string) {}},- window: {siyuan: {languages: language, config},- addEventListener: (name: string, callback: () => void, options: {signal: AbortSignal}) => {- notifications.set(name, callback);- options.signal.addEventListener("abort", () => notifications.delete(name));- }},- require: () => ({- escapeAttr: (value: string) => value.replace(/"/g, """), escapeHtml: (value: string) => value.replace(/</g, "<"),- genUUID: () => "new-stable-id", trackSettingSave: (task: Promise<unknown>) => task,- MAP_CONFIG_CHANGED_EVENT: "map-change", notifyMapConfigChanged: () => notifications.get("map-change")?.(),- showMessage: (message: string) => messages.push(message),- confirmDialog: (_title: string, _text: string, confirm: () => void) => confirmations.push(confirm),- fetchSyncPost: (url: string, data: {services: Write[]; expectedRevision: string}) => {- requests.push(url);- if (url === "/api/map/getConf") {- reads++;- if (deferRead) {- deferRead = false;- return new Promise(resolve => readRequests.push(resolve));- }- return Promise.resolve({code: 0, data: {services: backend.services.map(item => ({...item})), revision: `revision-${backend.version}`}});- }- assert.equal(url, "/api/map/setConf");- return new Promise((resolve, reject) => writes.push({services: data.services, expectedRevision: data.expectedRevision, resolve, reject}));- },- }),- });- const close = exports.mountMapSettings(root);- await tick();- const event = (id: string) => ({target: controls[id], stopPropagation() {}});- return {- controls, writes, readRequests, requests, messages, confirmations, close, config,- reads: () => reads, notify: () => notifications.get("map-change")?.(),- deferRead: () => { deferRead = true; },- updateServer: (services: Service[]) => { backend.services = services; backend.version++; },- request: (id: string) => exports.requestMapServiceConfiguration(root, id),- input: (id: string, value: string) => { controls[id].value = value; return listeners.get("input")?.(event(id)); },- change: (id: string, value: string | boolean) => {- if (typeof value === "boolean") controls[id].checked = value;- else controls[id].value = value;- return listeners.get("change")?.(event(id));- },- click: (id: string) => listeners.get("click")?.(event(id)),- finishWrite: async (index = 0) => {- if (writes[index].expectedRevision !== `revision-${backend.version}`) {- writes[index].resolve({code: -1, msg: "mapSettingsConflict"});- } else {- backend.services = writes[index].services.map(item => ({...service(item.id, item.provider), name: item.name}));- backend.version++;- writes[index].resolve({code: 0, data: {services: backend.services, revision: `revision-${backend.version}`}});- }- await tick();- },- };-};--test("Map settings share desktop/mobile order, existing icon, searchable controls, and teardown", () => {- const rows: Array<{key: string; keywords: string[]; html: () => string}> = [];- const tab = {group: () => tab, slot: (row: typeof rows[number]) => { rows.push(row); return tab; }};- const exports = {} as {registerMapTab: (tab: unknown) => void};- runInNewContext(compile(), {exports, window: {siyuan: {languages: language}}, require: () => ({- escapeHtml: (value: string) => value, escapeAttr: (value: string) => value,- genConfigItemMainHtml: (title: string, desc: string) => `${title} ${desc}`,- })});- exports.registerMapTab(tab);- assert.equal(rows[0].keywords.includes("mapServiceIDTip"), false);- assert.equal(rows[0].keywords.includes("mapServiceID"), false);- assert.ok(rows[0].keywords.includes("mapProductionTip"));- const html = rows[0].html();- assert.doesNotMatch(html, /mapServiceID/);- assert.equal((html.match(/class="b3-label b3-label--inner config-item"/g) || []).length, 4);- assert.match(html, /<div class="fn__flex">\s*<span class="fn__flex-1"><\/span>\s*<button id="mapServiceDelete"[^>]*>[^<]*<\/button><span class="fn__space"><\/span>\s*<button id="mapServiceCancel"[^>]*>[^<]*<\/button><span class="fn__space"><\/span>\s*<button id="mapServiceSave"/);- assert.equal((html.match(/type="password" autocomplete="off"/g) || []).length, 2);- assert.doesNotMatch(html, /value=".*apiKey/i);- const tabs = readFileSync("src/config/setting/tabs.ts", "utf8");- assert.match(tabs, /ocr: setting\.tab\([\s\S]*?map: setting\.tab\([\s\S]*?icon: "iconGlobe"[\s\S]*?registerMapTab\),\s*export:/);- assert.match(readFileSync("src/mobile/menu/settingPanel.ts", "utf8"), /tabId === "map"[\s\S]*?unmountMapTab\(root\)/);- assert.match(readFileSync("src/config/index.ts", "utf8"), /if \(mapRoot\) unmountMapTab\(mapRoot\)/);-});--test("redacted credentials stay empty, edits need explicit save, and sibling credentials are omitted", async () => {- const p = await createPanel([service(), service("two", "tencent")]);- assert.equal(p.controls.mapAPIKey.value, "");- assert.equal(p.controls.mapAPIKey.placeholder, "mapCredentialSaved");- p.input("mapServiceName", "Renamed");- assert.equal(p.writes.length, 0);- const saving = p.click("mapServiceSave");- await tick();- assert.equal(p.writes.length, 1);- assert.equal(p.writes[0].expectedRevision, "revision-0");- assert.equal(JSON.stringify(p.writes[0].services), JSON.stringify([- {id: "one", name: "Renamed", provider: "amap"}, {id: "two", name: "two", provider: "tencent"},- ]));- await p.finishWrite();- await saving;- assert.equal(p.controls.mapAPIKey.value, "");- p.close();-});--test("explicit clearing sends empty credentials; changing provider never reuses credentials", async () => {- const p = await createPanel();- p.change("mapClearAPIKey", true);- const saving = p.click("mapServiceSave");- await tick();- assert.equal(p.writes[0].services[0].apiKey, "");- assert.equal(p.writes[0].services[0].securityCode, undefined);- await p.finishWrite(); await saving;- p.input("mapAPIKey", "typed-key");- p.input("mapSecurityCode", "typed-code");- p.change("mapServiceProvider", "tencent");- assert.equal(p.controls.mapAPIKey.value, "");- assert.equal(p.controls.mapSecurityCode.value, "");- const changed = p.click("mapServiceSave");- await tick();- assert.equal(p.writes[1].services[0].apiKey, "");- assert.equal(p.writes[1].services[0].securityCode, undefined);- await p.finishWrite(1); await changed;- p.close();-});--test("changing providers away and back clears both old AMap credentials", async () => {- const p = await createPanel();- p.change("mapServiceProvider", "tencent");- p.change("mapServiceProvider", "amap");- const saving = p.click("mapServiceSave"); await tick();- assert.equal(p.writes[0].services[0].apiKey, "");- assert.equal(p.writes[0].services[0].securityCode, "");- await p.finishWrite(); await saving; p.close();-});--test("preconfigured OpenFreeMap is ready without a settings write or runtime request", async () => {- const p = await createPanel([{...service("builtin-openfreemap", "openfreemap"), name: "OpenFreeMap"}]);- assert.equal(p.controls.mapServiceSelect.value, "builtin-openfreemap");- assert.equal(p.controls.mapServiceName.value, "OpenFreeMap");- assert.equal(p.controls.mapServiceProvider.value, "openfreemap");- assert.equal(p.controls.mapAPIKeyRow.classList.contains("fn__none"), true);- assert.equal(p.controls.mapSecurityCodeRow.classList.contains("fn__none"), true);- assert.deepEqual(p.requests, ["/api/map/getConf"]);- assert.equal(p.writes.length, 0);- p.close();-});--test("OpenFreeMap writes no credentials and missing IDs are explicitly preserved", async () => {- const p = await createPanel([service()], "other-device-id");- assert.equal(p.controls.mapServiceID, undefined);- assert.equal(p.controls.mapServiceProvider.value, "openfreemap");- assert.equal(p.controls.mapServiceStatus.textContent, "mapMissingServiceTip");- assert.equal(p.writes.length, 0);- p.input("mapServiceName", "Other device service");- const saving = p.click("mapServiceSave"); await tick();- assert.equal(JSON.stringify(p.writes[0].services[1]), JSON.stringify({id: "other-device-id", name: "Other device service", provider: "openfreemap"}));- await p.finishWrite(); await saving; p.close();-});--test("new services receive an internal ID and cancelled drafts leave existing IDs unchanged", async () => {- const p = await createPanel();- await p.click("mapServiceAdd");- assert.equal(p.controls.mapServiceID, undefined);- p.input("mapServiceName", "Cancelled");- await p.click("mapServiceCancel");- assert.equal(p.writes.length, 0);- assert.equal(p.controls.mapServiceName.value, "one");- await p.click("mapServiceAdd");- await p.click("mapServiceSave");- assert.equal(p.controls.mapServiceName.validationMessage, "mapServiceNameRequired");- assert.equal(p.writes.length, 0);- p.input("mapServiceName", "New");- const saving = p.click("mapServiceSave"); await tick();- assert.deepEqual(Array.from(p.writes[0].services, item => item.id), ["one", "new-stable-id"]);- await p.finishWrite(); await saving;- assert.equal(p.controls.mapServiceSelect.value, "new-stable-id");- p.close();-});--test("internal service ID validation rejects collisions and unsafe requested IDs", async () => {- for (const id of ["bad id", "-bad", "<unsafe>", "a".repeat(129)]) {- const p = await createPanel([service()], id);- p.input("mapServiceName", "New"); await p.click("mapServiceSave");- assert.equal(p.controls.mapServiceStatus.textContent, "mapServiceIDInvalid");- assert.equal(p.writes.length, 0);- p.close();- }- const p = await createPanel([service("new-stable-id")]);- await p.click("mapServiceAdd"); p.input("mapServiceName", "New"); await p.click("mapServiceSave");- assert.equal(p.controls.mapServiceStatus.textContent, "mapServiceIDInvalid");- assert.equal(p.writes.length, 0);- p.close();-});--test("Cancel and close clear typed secrets without sending writes", async () => {- const p = await createPanel();- p.input("mapAPIKey", "draft-secret"); p.input("mapServiceName", "Draft");- assert.equal(p.controls.mapServiceSelect.disabled, true);- await p.click("mapServiceCancel");- assert.equal(p.controls.mapAPIKey.value, "");- assert.equal(p.controls.mapServiceName.value, "one");- p.input("mapAPIKey", "another-secret"); p.close();- assert.equal(p.controls.mapAPIKey.value, ""); assert.equal(p.writes.length, 0);-});--test("notifications preserve dirty drafts and conflicts prevent stale list replacement", async () => {- const p = await createPanel();- p.input("mapServiceName", "Draft");- p.updateServer([service(), service("remote", "openfreemap")]);- p.notify(); await tick();- assert.equal(p.reads(), 1); assert.equal(p.controls.mapServiceName.value, "Draft");- await p.click("mapServiceSave");- assert.equal(p.writes.length, 0);- assert.equal(p.controls.mapServiceStatus.textContent, "mapSettingsConflict");- await p.click("mapServiceCancel");- assert.match(p.controls.mapServiceSelect.innerHTML, /remote/);- assert.equal(p.controls.mapServiceName.value, "one"); p.close();-});--test("two concurrent saves retain the original revision and preserve the rejected draft", async () => {- const backend: Backend = {services: [service()], version: 0};- const first = await createPanel(backend.services, undefined, false, backend);- const second = await createPanel(backend.services, undefined, false, backend);- await first.click("mapServiceAdd");- first.input("mapServiceName", "Added in another window");- second.input("mapServiceName", "Unsaved rename");- second.input("mapAPIKey", "unsaved-replacement-key");- const firstSave = first.click("mapServiceSave");- const secondSave = second.click("mapServiceSave");- await tick();- assert.equal(first.writes[0].expectedRevision, "revision-0");- assert.equal(second.writes[0].expectedRevision, "revision-0");- await first.finishWrite(); await firstSave;- await second.finishWrite(); await secondSave;- assert.equal(backend.services.length, 2, "a stale replacement must not delete the newly added service");- assert.equal(backend.services[0].name, "one");- assert.equal(second.controls.mapServiceName.value, "Unsaved rename");- assert.equal(second.controls.mapAPIKey.value, "unsaved-replacement-key");- assert.equal(second.controls.mapServiceStatus.textContent, "mapSettingsConflict");- assert.equal(second.controls.mapServiceSave.disabled, false);- await second.click("mapServiceCancel");- assert.equal(second.controls.mapAPIKey.value, "");- assert.match(second.controls.mapServiceSelect.innerHTML, /Added in another window/);- second.input("mapServiceName", "Rebased rename");- const rebasedSave = second.click("mapServiceSave"); await tick();- assert.equal(second.writes[1].expectedRevision, "revision-1");- await second.finishWrite(1); await rebasedSave;- assert.equal(backend.services.length, 2);- assert.equal(backend.services[0].name, "Rebased rename");- first.close(); second.close();-});--test("preflight detects credential-only revision changes without rebasing a dirty draft", async () => {- const p = await createPanel();- p.input("mapAPIKey", "draft-key");- p.updateServer([service()]);- await p.click("mapServiceSave");- assert.equal(p.writes.length, 0);- assert.equal(p.controls.mapAPIKey.value, "draft-key");- assert.equal(p.controls.mapServiceStatus.textContent, "mapSettingsConflict");- p.close();-});--test("deletion uses the draft revision and preserves a concurrent addition", async () => {- const backend: Backend = {services: [service()], version: 0};- const p = await createPanel(backend.services, undefined, false, backend);- await p.click("mapServiceDelete"); p.confirmations[0](); await tick();- assert.equal(p.writes[0].expectedRevision, "revision-0");- p.updateServer([service(), service("new-service", "openfreemap")]);- await p.finishWrite();- assert.equal(backend.services.length, 2);- assert.equal(p.controls.mapServiceStatus.textContent, "mapSettingsConflict");- await p.click("mapServiceCancel");- assert.match(p.controls.mapServiceSelect.innerHTML, /new-service/);- p.close();-});--test("repeated Save is ignored and failed saves retain the draft for retry", async () => {- const p = await createPanel();- p.input("mapServiceName", "Draft");- const saving = p.click("mapServiceSave"); await tick();- await p.click("mapServiceSave"); assert.equal(p.writes.length, 1);- p.writes[0].resolve({code: -1, msg: "private server error"}); await saving;- assert.equal(p.controls.mapServiceName.value, "Draft");- assert.equal(p.controls.mapServiceSave.disabled, false);- assert.equal(p.controls.mapServiceStatus.textContent, "mapSettingsError"); p.close();-});--test("closing during preflight prevents a write, and late reads do not resurrect the panel", async () => {- const p = await createPanel();- p.input("mapServiceName", "Draft"); p.deferRead();- const saving = p.click("mapServiceSave"); await tick(); p.close();- p.readRequests[0]({code: 0, data: {services: [service()]}}); await saving;- assert.equal(p.writes.length, 0);- const initial = await createPanel([service()], "wanted", true);- initial.close(); initial.readRequests[0]({code: 0, data: {services: [service()]}}); await tick();- assert.equal(initial.controls.mapServiceName.value, "");-});--test("closing during submitted save clears secrets and ignores the late UI result", async () => {- const p = await createPanel(); p.input("mapAPIKey", "new-secret");- const saving = p.click("mapServiceSave"); await tick(); p.close();- const status = p.controls.mapServiceStatus.textContent;- await p.finishWrite(); await saving;- assert.equal(p.controls.mapAPIKey.value, ""); assert.equal(p.controls.mapServiceStatus.textContent, status);-});--test("newer missing-service requests survive loading and never overwrite a dirty draft", async () => {- const p = await createPanel([service()], "old-id", true);- p.request("latest-id"); p.readRequests[0]({code: 0, data: {services: [service()], revision: "revision-0"}}); await tick();- p.input("mapServiceName", "Draft"); p.request("third-id");- assert.equal(p.controls.mapServiceName.value, "Draft");- assert.deepEqual(p.messages, ["mapSaveOrCancel"]);- const saving = p.click("mapServiceSave"); await tick();- assert.equal(p.writes[0].services[1].id, "latest-id");- await p.finishWrite(); await saving;- assert.equal(p.controls.mapServiceName.value, "");- p.input("mapServiceName", "Newer request");- const nextSave = p.click("mapServiceSave"); await tick();- assert.equal(p.writes[1].services[2].id, "third-id");- await p.finishWrite(1); await nextSave; p.close();-});--test("delete confirmation is invalidated by closing or newer edits", async () => {- const p = await createPanel(); await p.click("mapServiceDelete");- p.input("mapServiceName", "Draft"); p.confirmations[0](); await tick();- assert.equal(p.writes.length, 0);- await p.click("mapServiceCancel"); await p.click("mapServiceDelete"); p.close();- p.confirmations[1](); await tick(); assert.equal(p.writes.length, 0);-});--test("read-only settings cannot send a write", async () => {- const p = await createPanel(); p.input("mapServiceName", "Draft"); p.config.readonly = true;- await p.click("mapServiceSave"); assert.equal(p.writes.length, 0); p.close();-});diff --git a/app/src/config/map.ts b/app/src/config/map.tsdeleted file mode 100644index f72fd04e9f..0000000000--- a/app/src/config/map.ts+++ /dev/null@@ -1,325 +0,0 @@-import type {MapConfig, MapService} from "../types/api";-import type {SettingTabBuilder} from "./setting/builder";-import {fetchSyncPost} from "../util/fetch";-import {escapeAttr, escapeHtml} from "../util/escape";-import {genUUID} from "../util/genID";-import {showMessage} from "../dialog/message";-import {confirmDialog} from "../dialog/confirmDialog";-import {genConfigItemMainHtml} from "./render/fragments";-import {trackSettingSave} from "./setting/pending";-import {MAP_CONFIG_CHANGED_EVENT, notifyMapConfigChanged} from "./mapRuntime";--type MapServiceWrite = Pick<MapService, "id" | "name" | "provider"> & {apiKey?: string; securityCode?: string};-const mounts = new WeakMap<HTMLElement, () => void>();-const configureServiceEvent = "siyuan-configure-map-service";-const providers = ["amap", "tencent", "baidu", "openfreemap"] as const;--const providerName = (provider: string) => {- const names: Record<string, string> = {- amap: window.siyuan.languages.mapProviderAMap,- tencent: window.siyuan.languages.mapProviderTencent,- baidu: window.siyuan.languages.mapProviderBaidu,- openfreemap: "OpenFreeMap",- };- return names[provider] || provider;-};--export const requestMapServiceConfiguration = (root: HTMLElement, missingServiceID: string) => {- if (!root || !missingServiceID) return;- root.dataset.mapServiceID = missingServiceID;- root.dispatchEvent(new CustomEvent(configureServiceEvent));-};--export const unmountMapTab = (root: HTMLElement) => {- mounts.get(root)?.();- mounts.delete(root);- delete root.dataset.mapServiceID;-};--export const mountMapTab = (root: HTMLElement) => {- mounts.get(root)?.();- mounts.set(root, mountMapSettings(root));-};--export const registerMapTab = (tab: SettingTabBuilder) => {- const lang = window.siyuan.languages;- const field = (id: string, title: string, control: string, description?: string) =>- `<div class="b3-label b3-label--inner config-item">${genConfigItemMainHtml(`<label for="${id}">${title}</label>`, description)}-<div class="fn__hr--small"></div>${control}</div>`;- const input = (id: string, password = false) =>- `<input id="${id}" class="b3-text-field fn__block" type="${password ? "password" : "text"}" autocomplete="off" spellcheck="false"${password ? "" : ' maxlength="128"'} disabled>`;- tab.group("services", lang.mapServices).slot({- key: "mapServices",- keywords: [lang.mapSettings, lang.mapServices, lang.mapServiceName,- lang.mapProvider, lang.mapSecurityCode, lang.apiKey, lang.mapCredentialsTip, lang.mapRenderingTip,- lang.mapProductionTip, ...providers.map(providerName)],- html: () => `<div id="mapSettings" class="b3-label config-item">-${genConfigItemMainHtml(lang.mapServices, lang.mapServicesTip)}-<div class="fn__hr"></div><div class="fn__flex">-<select id="mapServiceSelect" aria-label="${escapeAttr(lang.mapServices)}" class="b3-select fn__flex-1" disabled></select>-<span class="fn__space"></span><button id="mapServiceAdd" class="b3-button b3-button--outline" disabled>${lang.mapAddService}</button>-</div><div class="fn__hr--small"></div><div id="mapServiceStatus" class="b3-label__text" role="status"></div>-<div id="mapServiceEditor" class="fn__none">-${field("mapServiceName", lang.mapServiceName, input("mapServiceName"))}-${field("mapServiceProvider", lang.mapProvider, `<select id="mapServiceProvider" class="b3-select fn__block" disabled>${providers.map(provider => `<option value="${provider}">${escapeHtml(providerName(provider))}</option>`).join("")}</select>`)}-<div id="mapAPIKeyRow">${field("mapAPIKey", lang.apiKey, `${input("mapAPIKey", true)}<div class="fn__hr--small"></div><label class="fn__flex"><span class="fn__flex-1">${lang.mapClearCredential}</span><input id="mapClearAPIKey" type="checkbox" class="b3-switch" disabled></label>`, lang.mapCredentialsTip)}</div>-<div id="mapSecurityCodeRow">${field("mapSecurityCode", lang.mapSecurityCode, `${input("mapSecurityCode", true)}<div class="fn__hr--small"></div><label class="fn__flex"><span class="fn__flex-1">${lang.mapClearCredential}</span><input id="mapClearSecurityCode" type="checkbox" class="b3-switch" disabled></label>`, lang.mapCredentialsTip)}</div>-<div class="fn__hr"></div><div class="fn__flex">-<span class="fn__flex-1"></span>-<button id="mapServiceDelete" class="b3-button b3-button--remove" disabled>${lang.delete}</button><span class="fn__space"></span>-<button id="mapServiceCancel" class="b3-button b3-button--cancel" disabled>${lang.cancel}</button><span class="fn__space"></span>-<button id="mapServiceSave" class="b3-button b3-button--text" disabled>${lang.save}</button>-</div></div><div class="fn__hr"></div>-<div class="b3-label__text">${lang.mapRenderingTip}</div><div class="fn__hr--small"></div>-<div class="b3-label__text">${lang.mapProductionTip}</div><div class="fn__hr--small"></div>-<button id="mapServiceRetry" class="b3-button b3-button--outline fn__none">${lang.retry}</button>-</div>`,- });-};--export const mountMapSettings = (root: HTMLElement): (() => void) => {- const controller = new AbortController();- const lang = window.siyuan.languages;- const get = <T extends HTMLElement = HTMLInputElement>(id: string) => root.querySelector<T>(`#${id}`);- let closed = false;- let data: MapConfig;- let selectedID = "";- let draftID = "";- let creating = false;- let dirty = false;- let busy = false;- let loading = false;- let revision = 0;- let refreshPending = false;- let providerChanged = false;- const clearCredentials = () => {- ["mapAPIKey", "mapSecurityCode"].forEach(id => {- const input = get<HTMLInputElement>(id);- if (input) input.value = "";- });- ["mapClearAPIKey", "mapClearSecurityCode"].forEach(id => {- const input = get<HTMLInputElement>(id);- if (input) input.checked = false;- });- };- const current = () => data?.services.find(service => service.id === selectedID);- const updateControls = () => {- const provider = providers.find(item => item === get<HTMLSelectElement>("mapServiceProvider").value);- const locked = busy || loading || !data || window.siyuan.config.readonly;- root.querySelectorAll<HTMLInputElement | HTMLSelectElement | HTMLButtonElement>("input, select, button")- .forEach(element => { element.disabled = locked; });- get<HTMLSelectElement>("mapServiceSelect").disabled = busy || loading || !data || dirty;- get<HTMLButtonElement>("mapServiceAdd").disabled = locked || dirty;- get<HTMLButtonElement>("mapServiceSave").disabled = locked || !dirty;- get<HTMLButtonElement>("mapServiceCancel").disabled = busy || loading || !dirty;- get<HTMLButtonElement>("mapServiceDelete").disabled = locked || dirty || creating || !current();- get<HTMLButtonElement>("mapServiceRetry").disabled = busy || loading;- get("mapServiceEditor").classList.toggle("fn__none", !creating && !current());- get("mapAPIKeyRow").classList.toggle("fn__none", provider === "openfreemap");- get("mapSecurityCodeRow").classList.toggle("fn__none", provider !== "amap");- get<HTMLInputElement>("mapAPIKey").disabled = locked || provider === "openfreemap" || get<HTMLInputElement>("mapClearAPIKey").checked;- get<HTMLInputElement>("mapSecurityCode").disabled = locked || provider !== "amap" || get<HTMLInputElement>("mapClearSecurityCode").checked;- };- const renderDraft = (service?: MapService, missingID?: string) => {- revision++;- selectedID = service?.id || "";- draftID = service?.id || missingID || "";- creating = !service && missingID !== undefined;- dirty = creating;- providerChanged = false;- clearCredentials();- get<HTMLInputElement>("mapServiceName").value = service?.name || "";- get<HTMLSelectElement>("mapServiceProvider").value = service?.provider || "openfreemap";- get<HTMLInputElement>("mapServiceName").setCustomValidity("");- get<HTMLInputElement>("mapAPIKey").placeholder = service?.hasAPIKey ? lang.mapCredentialSaved : "";- get<HTMLInputElement>("mapSecurityCode").placeholder = service?.hasSecurityCode ? lang.mapCredentialSaved : "";- const select = get<HTMLSelectElement>("mapServiceSelect");- select.innerHTML = `<option value="">${escapeHtml(creating ? lang.mapAddService : lang.mapNoServices)}</option>` +- data.services.map(item => `<option value="${escapeAttr(item.id)}">${escapeHtml(item.name)} (${escapeHtml(providerName(item.provider))})</option>`).join("");- select.value = selectedID;- get("mapServiceStatus").textContent = creating && root.dataset.mapServiceID ? lang.mapMissingServiceTip :- service ? service.configured ? lang.mapCredentialsPresent : lang.mapCredentialsMissing : lang.mapNoServices;- updateControls();- };- const openRequestedService = () => {- const requestedID = root.dataset.mapServiceID;- if (!requestedID || !data || busy || loading || dirty) return false;- const service = data.services.find(item => item.id === requestedID);- renderDraft(service, requestedID);- delete root.dataset.mapServiceID;- get<HTMLInputElement>("mapServiceName").focus();- return true;- };- const reportFailure = () => {- if (!closed) {- get("mapServiceStatus").textContent = lang.mapSettingsError;- get("mapServiceRetry").classList.remove("fn__none");- }- };- const load = async () => {- if (closed) return;- if (busy || loading || dirty) {- refreshPending = true;- return;- }- refreshPending = false;- loading = true;- const readRevision = revision;- updateControls();- try {- const response = await fetchSyncPost("/api/map/getConf", {}, undefined, true, controller.signal);- if (closed || readRevision !== revision) return;- if (response.code !== 0) { reportFailure(); return; }- data = response.data;- window.siyuan.config.map = data;- get("mapServiceRetry").classList.add("fn__none");- loading = false;- if (!openRequestedService()) renderDraft(current() || data.services[0]);- } catch (error) {- if (!controller.signal.aborted) reportFailure();- } finally {- loading = false;- if (!closed) {- updateControls();- if (refreshPending && !dirty) void load();- }- }- };- const writeService = (service: MapService): MapServiceWrite => ({id: service.id, name: service.name, provider: service.provider});- const persist = async (services: MapServiceWrite[], nextID: string) => {- if (closed || busy || loading || !data || window.siyuan.config.readonly) return;- const expectedRevision = data.revision || "";- busy = true;- revision++;- updateControls();- try {- // 替换列表前检查外部改动,冲突时保留草稿,由用户取消后重新编辑。- const latest = await fetchSyncPost("/api/map/getConf", {}, undefined, true, controller.signal);- if (closed) return;- if (latest.code !== 0) { reportFailure(); return; }- if ((latest.data.revision || "") !== expectedRevision ||- JSON.stringify(latest.data.services) !== JSON.stringify(data.services)) {- refreshPending = true;- get("mapServiceStatus").textContent = lang.mapSettingsConflict;- dirty = true;- return;- }- // 提交后关闭界面只销毁界面状态,不把已发送的写入伪装成取消。- const response = await trackSettingSave(fetchSyncPost("/api/map/setConf", {services, expectedRevision}, undefined, true));- if (closed) return;- if (response.code !== 0 && response.msg === "mapSettingsConflict") {- refreshPending = true;- dirty = true;- get("mapServiceStatus").textContent = lang.mapSettingsConflict;- return;- }- if (response.code !== 0) { reportFailure(); return; }- data = response.data;- window.siyuan.config.map = data;- dirty = false;- renderDraft(data.services.find(service => service.id === nextID) || data.services[0]);- get("mapServiceRetry").classList.add("fn__none");- notifyMapConfigChanged();- } catch (error) {- if (!controller.signal.aborted) reportFailure();- } finally {- busy = false;- if (!closed) {- updateControls();- if (!dirty) {- openRequestedService();- if (refreshPending) void load();- }- }- }- };- const save = async () => {- const name = get<HTMLInputElement>("mapServiceName");- const provider = providers.find(item => item === get<HTMLSelectElement>("mapServiceProvider").value);- if (!/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/.test(draftID) ||- creating && data.services.some(service => service.id === draftID)) {- get("mapServiceStatus").textContent = lang.mapServiceIDInvalid;- return;- }- name.setCustomValidity(name.value.trim() ? "" : lang.mapServiceNameRequired);- if (!name.reportValidity() || !provider) return;- const service: MapServiceWrite = {id: draftID, name: name.value.trim(), provider};- if (provider !== "openfreemap") {- const apiKey = get<HTMLInputElement>("mapAPIKey").value;- if (get<HTMLInputElement>("mapClearAPIKey").checked) service.apiKey = "";- else if (apiKey || providerChanged) service.apiKey = apiKey;- }- if (provider === "amap") {- const securityCode = get<HTMLInputElement>("mapSecurityCode").value;- if (get<HTMLInputElement>("mapClearSecurityCode").checked) service.securityCode = "";- else if (securityCode || providerChanged) service.securityCode = securityCode;- }- const services = data.services.map(item => item.id === selectedID ? service : writeService(item));- if (creating) services.push(service);- await persist(services, service.id);- };- root.addEventListener("input", event => {- if (closed || busy || loading || !data || window.siyuan.config.readonly) return;- const target = event.target as HTMLInputElement;- if (!["mapServiceName", "mapAPIKey", "mapSecurityCode"].includes(target.id)) return;- target.setCustomValidity("");- dirty = true;- updateControls();- }, {signal: controller.signal});- root.addEventListener("change", event => {- event.stopPropagation();- if (closed || busy || loading || !data) return;- const target = event.target as HTMLInputElement;- if (target.id === "mapServiceSelect" && !dirty) {- renderDraft(data.services.find(service => service.id === target.value));- } else if (!window.siyuan.config.readonly) {- if (target.id === "mapServiceProvider") {- clearCredentials();- providerChanged = true;- get<HTMLInputElement>("mapAPIKey").placeholder = "";- get<HTMLInputElement>("mapSecurityCode").placeholder = "";- } else if (target.id === "mapClearAPIKey" && target.checked) get<HTMLInputElement>("mapAPIKey").value = "";- else if (target.id === "mapClearSecurityCode" && target.checked) get<HTMLInputElement>("mapSecurityCode").value = "";- dirty = true;- updateControls();- }- }, {signal: controller.signal});- root.addEventListener("click", async event => {- const button = (event.target as HTMLElement).closest<HTMLButtonElement>("button");- if (!button || button.disabled || closed || busy || loading) return;- event.stopPropagation();- if (button.id === "mapServiceRetry") {- if (!dirty) await load();- else get("mapServiceStatus").textContent = lang.mapSaveOrCancel;- } else if (button.id === "mapServiceCancel") {- dirty = false;- clearCredentials();- if (refreshPending) {- renderDraft(current() || data.services[0]);- await load();- } else if (!openRequestedService()) renderDraft(current() || data.services[0]);- } else if (!data || window.siyuan.config.readonly) return;- else if (button.id === "mapServiceAdd" && !dirty) renderDraft(undefined, genUUID());- else if (button.id === "mapServiceSave" && dirty) await trackSettingSave(save());- else if (button.id === "mapServiceDelete" && current() && !dirty) {- const deleteID = selectedID;- const deleteRevision = revision;- confirmDialog(lang.delete, lang.mapDeleteServiceTip, () => {- if (closed || dirty || busy || revision !== deleteRevision) return;- void trackSettingSave(persist(data.services.filter(service => service.id !== deleteID).map(writeService), ""));- }, undefined, true);- }- }, {signal: controller.signal});- root.addEventListener(configureServiceEvent, () => {- if (!openRequestedService() && dirty) showMessage(lang.mapSaveOrCancel);- }, {signal: controller.signal});- window.addEventListener(MAP_CONFIG_CHANGED_EVENT, () => { void load(); }, {signal: controller.signal});- get("mapServiceStatus").textContent = lang.loading;- void load();- return () => {- closed = true;- revision++;- controller.abort();- clearCredentials();- };-};diff --git a/app/src/config/mapRuntime.ts b/app/src/config/mapRuntime.tsdeleted file mode 100644index a4a4564535..0000000000--- a/app/src/config/mapRuntime.ts+++ /dev/null@@ -1,5 +0,0 @@-export const MAP_CONFIG_CHANGED_EVENT = "siyuan-map-config-changed";--export const notifyMapConfigChanged = () => {- window.dispatchEvent(new CustomEvent(MAP_CONFIG_CHANGED_EVENT));-};diff --git a/app/src/config/openSetting.test.ts b/app/src/config/openSetting.test.tsindex 678e01b56c..3a69ce32e5 100644--- a/app/src/config/openSetting.test.ts+++ b/app/src/config/openSetting.test.ts@@ -16,7 +16,7 @@ const fixture = (browser = false, mobile = false) => {{BROWSER: browser, MOBILE: mobile}, false, true), ScriptTarget.ES2021, true);const declarations = index.statements.filter(statement => isVariableStatement(statement) &&statement.declarationList.declarations.some(item => ["openSetting", "openBazaarReadme"].includes(item.name.getText(index))));- const entry = {} as {openSetting: (app: unknown, tab?: string, options?: {aiProvider?: "chatgpt"; missingMapServiceID?: string}) => void;+ const entry = {} as {openSetting: (app: unknown, tab?: string, options?: {aiProvider?: "chatgpt"}) => void;openBazaarReadme: (app: unknown, type: string, name: string, from: string) => Promise<void>};let native = false;const root = {};@@ -29,7 +29,6 @@ const fixture = (browser = false, mobile = false) => {openSettingDialog: (...args: unknown[]) => { calls.push(["dialog", ...args]); return dialog; },openMobileSetting: (...args: unknown[]) => calls.push(["mobile", ...args]),openChatGPTProvider: () => calls.push(["chatgpt"]),- requestMapServiceConfiguration: (...args: unknown[]) => calls.push(["map", ...args]),window: {siyuan: {dialogs: [dialog], config}},Constants: {DIALOG_SETTING: "settings"}, switchSettingTab: (...args: unknown[]) => calls.push(["switch", ...args]),fetchSyncPost: async () => ({code: 0, data: {packages: [{name: "plugin"}]}}),@@ -57,22 +56,6 @@ test("settings and marketplace readmes follow the current workspace preference",assert.deepEqual(f.calls.map(item => item[0]), ["switch"]);});-test("missing map service navigation preserves the ID in native, browser, and mobile settings", () => {- const f = fixture();- f.setPreference(true);- f.entry.openSetting({}, "map", {missingMapServiceID: "other-device"});- assert.equal(JSON.stringify(f.calls[0][2]), JSON.stringify({tab: "map", missingMapServiceID: "other-device"}));- f.calls.length = 0;- f.setPreference(false);- f.entry.openSetting({}, "map", {missingMapServiceID: "other-device"});- assert.deepEqual(f.calls.map(item => item[0]), ["dialog", "map"]);- assert.equal(f.calls[1][2], "other-device");- const mobile = fixture(true, true);- mobile.entry.openSetting({}, "map", {missingMapServiceID: "other-device"});- assert.equal(mobile.calls[0][4], "other-device");- const windowSource = readFileSync("src/config/setting/window.ts", "utf8");- assert.match(windowSource, /revision === commandRevision[\s\S]*?requestMapServiceConfiguration/);-});test("only a truthy workspace preference opens the independent settings window", () => {for (const [stored, expected] of [[false, "dialog"], [0, "dialog"], ["", "dialog"],diff --git a/app/src/config/setting/nativeWindow.ts b/app/src/config/setting/nativeWindow.tsindex 2b936a6e34..822df3fc57 100644--- a/app/src/config/setting/nativeWindow.ts+++ b/app/src/config/setting/nativeWindow.ts@@ -22,7 +22,6 @@ import type {TSettingTab} from "./tabs";export interface ISettingsCommand {tab?: TSettingTab;aiProvider?: "chatgpt";- missingMapServiceID?: string;readme?: {type: TBazaarType; from: "bazaar" | "downloaded"; resource: IBazaarItem};}diff --git a/app/src/config/setting/sync.test.ts b/app/src/config/setting/sync.test.tsindex 45e25cd65b..b071a1ea81 100644--- a/app/src/config/setting/sync.test.ts+++ b/app/src/config/setting/sync.test.ts@@ -7,24 +7,6 @@ import {getAgentDefaultModelID, getUsableAgentModels} from "../../layout/dock/agimport {createNamespacePatchQueue} from "../util/namespacePatchQueue";import {mergeRecordByDottedPath} from "../util/dotPath";-test("map notifications apply redacted services without replacing active drafts", async () => {- let notified = 0;- const config = {map: {services: [] as {id: string}[]}};- const next = {services: [{id: "other-device"}]};- const exports = {} as {refreshSettingConfig: (namespace: string) => Promise<void>};- runInNewContext(transpileModule(readFileSync("src/config/setting/sync.ts", "utf8"), {- compilerOptions: {module: ModuleKind.CommonJS, target: ScriptTarget.ES2021},- }).outputText, {exports, window: {siyuan: {config}}, console, require: () => ({- notifyMapConfigChanged: () => { notified++; },- fetchSyncPost: async () => ({code: 0, data: {conf: {map: next}}}),- systemConfig: (value: unknown) => value, syncSettingTasks() {},- getSettingTabDefs: () => [{id: "map"}],- remountOpenSettingTab: () => assert.fail("map settings drafts must not be remounted"),- })});- await exports.refreshSettingConfig("map");- assert.equal(notified, 1);- assert.equal(config.map, next);-});for (const mobile of [false, true]) {test(`namespace patch and its push read confirmed configuration once (mobile=${mobile})`, async () => {@@ -51,7 +33,7 @@ for (const mobile of [false, true]) {require: () => ({fetchSyncPost, systemConfig: (value: unknown) => value,objEquals: (left: unknown, right: unknown) => JSON.stringify(left) === JSON.stringify(right),editorConfigApi: {apply: (value: typeof config.editor) => { config.editor = value; }},- syncSettingTasks() {}, notifyMapConfigChanged() {}, getSettingTabDefs: () => [{id: "editor"}], remountOpenSettingTab: async () => {},+ syncSettingTasks() {}, getSettingTabDefs: () => [{id: "editor"}], remountOpenSettingTab: async () => {},})});const api = {} as {createConfigNamespaceApi: (options: {namespace: string; getConfig: () => typeof config.editor;@@ -89,7 +71,7 @@ for (const mobile of [false, true]) {systemConfig: (value: unknown) => value,objEquals: (left: unknown, right: unknown) => JSON.stringify(left) === JSON.stringify(right),editorConfigApi: {apply: (value: typeof config.editor) => { config.editor = value; }},- syncSettingTasks() {}, notifyMapConfigChanged() {}, getSettingTabDefs: () => [{id: "editor"}], remountOpenSettingTab: async () => {},+ syncSettingTasks() {}, getSettingTabDefs: () => [{id: "editor"}], remountOpenSettingTab: async () => {},})});const saving = exports.refreshSettingConfigAfter("editor", async () => {await new Promise<void>(resolve => { finishSave = resolve; });@@ -122,7 +104,7 @@ test("settings notifications update runtime configuration and refresh the registfetchSyncPost: async () => ({code: 0, data: {conf: {editor: {fontSize: 18}, keymap: {}, appearance: {}}}}),systemConfig: (value: unknown) => value, objEquals: (left: unknown, right: unknown) => JSON.stringify(left) === JSON.stringify(right),editorConfigApi: {apply: (value: {fontSize: number}) => { config.editor = value; }}, appearanceConfigApi: {},- syncSettingTasks() {}, notifyMapConfigChanged() {}, remountOpenSettingTab: async (tab: string) => { remounted.push(tab); },+ syncSettingTasks() {}, remountOpenSettingTab: async (tab: string) => { remounted.push(tab); },getSettingTabDefs: () => [{id: "editor"}],};const exports = {} as {refreshSettingConfig: (namespace: string) => Promise<void>};@@ -146,7 +128,7 @@ for (const mobile of [false, true]) {fetchSyncPost: async () => ({code: 0, data: {conf: config}}),systemConfig: (value: unknown) => value,objEquals: (left: unknown, right: unknown) => JSON.stringify(left) === JSON.stringify(right),- syncSettingTasks() {}, notifyMapConfigChanged() {}, getSettingTabDefs: (): {id: string}[] => [],+ syncSettingTasks() {}, getSettingTabDefs: (): {id: string}[] => [],refreshMountedBazaar: () => { refreshed++; },})});await exports.refreshSettingConfig("editor");@@ -177,7 +159,7 @@ for (const mobile of [false, true]) {objEquals: (left: unknown, right: unknown) => JSON.stringify(left) === JSON.stringify(right),editorConfigApi: {apply: () => assert.fail("OCR must not apply editor settings")},appearanceConfigApi: {apply: () => assert.fail("OCR must not apply appearance settings")},- syncSettingTasks() {}, notifyMapConfigChanged() {}, getSettingTabDefs: () => [{id: "assets"}, {id: "ocr"}, {id: "appearance"}, {id: "editor"}],+ syncSettingTasks() {}, getSettingTabDefs: () => [{id: "assets"}, {id: "ocr"}, {id: "appearance"}, {id: "editor"}],notifyOCRChanged: () => { notifications++; },remountOpenSettingTab: async (tab: string) => { remounted.push(tab); },})});@@ -241,7 +223,7 @@ for (const mobile of [false, true]) {fetchSyncPost: async () => ({code: 0, data: {conf: JSON.parse(JSON.stringify({...config, ai: next}))}}),systemConfig: (value: unknown) => value,objEquals: (left: unknown, right: unknown) => JSON.stringify(left) === JSON.stringify(right),- ...aiExports, syncSettingTasks() {}, notifyMapConfigChanged() {}, refreshMountedBazaar() {}, remountOpenSettingTab: async () => {}, getSettingTabDefs: () => [{id: "ai"}],+ ...aiExports, syncSettingTasks() {}, refreshMountedBazaar() {}, remountOpenSettingTab: async () => {}, getSettingTabDefs: () => [{id: "ai"}],};const exports = {} as {refreshSettingConfig: (namespace?: string) => Promise<void>};runInNewContext(compile("src/config/setting/sync.ts"), {exports, require: () => dependencies, window: windowContext, console});@@ -279,7 +261,7 @@ for (const mobile of [false, true]) {fetchSyncPost: async () => failed ? {code: -1} : {code: 0, data: {conf: JSON.parse(JSON.stringify(next))}},systemConfig: (value: unknown) => value,objEquals: (left: unknown, right: unknown) => JSON.stringify(left) === JSON.stringify(right),- syncSettingTasks() {}, notifyMapConfigChanged() {}, refreshMountedBazaar() {}, processSync() {}, getSettingTabDefs: () => [{id: "app"}, {id: "access"}],+ syncSettingTasks() {}, refreshMountedBazaar() {}, processSync() {}, getSettingTabDefs: () => [{id: "app"}, {id: "access"}],remountOpenSettingTab: async (tab: string) => { remounted.push(tab); },})});await exports.refreshSettingConfig("system");@@ -330,7 +312,7 @@ for (const mobile of [false, true]) {exports, window, console, require: () => ({fetchSyncPost: async () => ({code: 0, data: {conf: {sync: {...next}}}}), systemConfig: (value: unknown) => value,objEquals: (left: unknown, right: unknown) => JSON.stringify(left) === JSON.stringify(right),- syncSettingTasks() {}, notifyMapConfigChanged() {}, processSync: () => { refreshes++; runtime.processSync(); },+ syncSettingTasks() {}, processSync: () => { refreshes++; runtime.processSync(); },getSettingTabDefs: () => [{id: "sync"}], remountOpenSettingTab: async () => {},}),});diff --git a/app/src/config/setting/sync.ts b/app/src/config/setting/sync.tsindex 378d2dffc5..cbe71eee2b 100644--- a/app/src/config/setting/sync.ts+++ b/app/src/config/setting/sync.ts@@ -7,7 +7,6 @@ import {objEquals} from "../../util/functions";import {syncSettingTasks} from "./taskBlocker";import {processSync} from "../../dialog/processSystem";import {notifyOCRChanged} from "../ocrRuntime";-import {notifyMapConfigChanged} from "../mapRuntime";import {refreshMountedBazaar} from "../bazaarTab";/// #if !MOBILEimport {applyKeymap} from "../tabs/keymapRuntime";@@ -84,7 +83,7 @@ export const refreshSettingConfig = (namespace = "*"): Promise<void> => {window.siyuan.config.keymap = next.keymap;}/// #endif- const simple = ["export", "fileTree", "search", "flashcard", "secrets", "variables", "repo", "system", "bazaar", "publish", "ocr", "map"] as const;+ const simple = ["export", "fileTree", "search", "flashcard", "secrets", "variables", "repo", "system", "bazaar", "publish", "ocr"] as const;for (const key of simple) {if (includes(key)) {Object.assign(window.siyuan.config, {[key]: next[key]});@@ -93,7 +92,6 @@ export const refreshSettingConfig = (namespace = "*"): Promise<void> => {if (includes("ocr") && next.ocr) {notifyOCRChanged();}- if (includes("map")) notifyMapConfigChanged();if (includes("bazaar")) {void refreshMountedBazaar();}@@ -102,7 +100,7 @@ export const refreshSettingConfig = (namespace = "*"): Promise<void> => {const remountTabs = new Set<TSettingTab>();for (const namespace of namespaces.has("*") ? [...simple, "editor", "keymap", "appearance", "ai", "sync"] : namespaces) {const tab = getSettingTabDefs().find(definition => definition.id === (tabs[namespace] || namespace));- if (tab && tab.id !== "ocr" && tab.id !== "map") remountTabs.add(tab.id);+ if (tab && tab.id !== "ocr") remountTabs.add(tab.id);}if (accessChanged) remountTabs.add("access");remountTabs.forEach(tab => { void remountOpenSettingTab(tab); });diff --git a/app/src/config/setting/tabs.ts b/app/src/config/setting/tabs.tsindex bb03e906cb..ce743b885f 100644--- a/app/src/config/setting/tabs.ts+++ b/app/src/config/setting/tabs.ts@@ -10,7 +10,6 @@ import {mountSyncTabExtras, patchSyncConfig} from "../tabs/syncRuntime";import {mountAccessTab} from "../tabs/accessRuntime";import {collectAssetsTabSearchStrings, mountAssetsTab} from "../assets";import {mountOCRTab, registerOCRTab} from "../ocr";-import {mountMapTab, registerMapTab} from "../map";import {collectBazaarTabSearchStrings, mountBazaarTab} from "../bazaarTab";/// #if !MOBILEimport {collectKeymapTabSearchStrings, mountKeymapTab} from "../tabs/keymapUi";@@ -93,12 +92,6 @@ const createSettingTabs = () => {title: () => "OCR",afterMount: mountOCRTab,}, registerOCRTab),- map: setting.tab({- id: "map",- icon: "iconGlobe",- title: () => window.siyuan.languages.mapSettings,- afterMount: mountMapTab,- }, registerMapTab),export: setting.tab({id: "export",icon: "iconUpload",diff --git a/app/src/config/setting/window.ts b/app/src/config/setting/window.tsindex e47a2e714f..8c0b8412f0 100644--- a/app/src/config/setting/window.ts+++ b/app/src/config/setting/window.ts@@ -95,11 +95,9 @@ const initialize = async () => {});let dialog: Dialog;let command: ISettingsCommand;- let commandRevision = 0;const applyCommand = async () => {if (!isActive() || !dialog || !command || host.plugin) return;const next = command;- const revision = ++commandRevision;command = undefined;if (next.tab) {const mounted = switchSettingTab(dialog.element, host.app, next.tab);@@ -115,12 +113,6 @@ const initialize = async () => {const {openChatGPTProvider} = await import("../tabs/ai/aiProviderUi");if (isActive()) { openChatGPTProvider(); }}- if (next.tab === "map" && next.missingMapServiceID) {- const {requestMapServiceConfiguration} = await import("../map");- if (isActive() && revision === commandRevision) {- requestMapServiceConfiguration(dialog.element.querySelector('.config__tab-container[data-name="map"]'), next.missingMapServiceID);- }- }if (next.readme) {const {type, from, resource} = next.readme;await withMountedBazaar(({bazaar, renderReadme}) => {diff --git a/app/src/config/systemConfig.ts b/app/src/config/systemConfig.tsindex 0bc496aa4c..95f8cc807e 100644--- a/app/src/config/systemConfig.ts+++ b/app/src/config/systemConfig.ts@@ -166,4 +166,4 @@ export const systemConfigCollections = (value: Pick<SystemAppConf, "keymap" | "u};export const systemConfig = (value: SystemAppConf, defaultLayout?: () => Config.IUiLayout): Config.IConf =>- ({...value, map: value.map || {services: [], revision: ""}, ...systemConfigCollections(value, defaultLayout)});+ ({...value, ...systemConfigCollections(value, defaultLayout)});diff --git a/app/src/mobile/menu/index.ts b/app/src/mobile/menu/index.tsindex bb1a896a42..8ca78d99a9 100644--- a/app/src/mobile/menu/index.ts+++ b/app/src/mobile/menu/index.ts@@ -20,7 +20,7 @@ const takeMobileMenuReturnCallback = () => {return callback;};-export const openMobileSetting = (app: App, tab?: TSettingTab, returnCallback?: () => void, missingMapServiceID?: string) => {+export const openMobileSetting = (app: App, tab?: TSettingTab, returnCallback?: () => void) => {if (!tab) {popMenu();if (document.getElementById("menu")?.style.transform === "translateX(0px)") {@@ -35,7 +35,7 @@ export const openMobileSetting = (app: App, tab?: TSettingTab, returnCallback?:if (!settingTabDef || settingTabDef.hidden) {return;}- openSettingTab(app, settingTabDef, callback, missingMapServiceID);+ openSettingTab(app, settingTabDef, callback);};export const popMenu = () => {diff --git a/app/src/mobile/menu/settingPanel.ts b/app/src/mobile/menu/settingPanel.tsindex 3d4d9a0178..b2ae20fcae 100644--- a/app/src/mobile/menu/settingPanel.ts+++ b/app/src/mobile/menu/settingPanel.ts@@ -9,7 +9,6 @@ import {clearSyncTabElement} from "../../config/tabs/syncRuntime";import {clearAccessTabElement} from "../../config/tabs/accessRuntime";import {unmountAssetsTab} from "../../config/assets";import {unmountOCRTab} from "../../config/ocr";-import {unmountMapTab} from "../../config/map";import {unmountWorkspaceStorage} from "../../config/tabs/workspaceStorage";/** 卸载设置页中持有全局状态的模块,避免容器被替换后残留副作用 */@@ -20,8 +19,6 @@ export const unmountSettingTab = (root: HTMLElement, tabId: TSettingTab) => {unmountAssetsTab(root);} else if (tabId === "ocr") {unmountOCRTab(root);- } else if (tabId === "map") {- unmountMapTab(root);} else if (tabId === "app") {unmountWorkspaceStorage(root);} else if (tabId === "sync") {@@ -33,7 +30,7 @@ export const unmountSettingTab = (root: HTMLElement, tabId: TSettingTab) => {/** 以全屏面板打开单个设置页,`returnCallback` 用于接管面板返回按钮的行为 */export const openSettingTab = (app: App, settingTabDef: ISettingTabShell<TSettingTab>,- returnCallback?: () => void, missingMapServiceID?: string) => {+ returnCallback?: () => void) => {let root: HTMLElement | undefined;openModel({title: settingTabDef.title,@@ -42,7 +39,6 @@ export const openSettingTab = (app: App, settingTabDef: ISettingTabShell<TSettinhtml: `<div class="config${isMobile() ? " config--mobile" : ""}"></div>`,bindEvent(modelMainElement: HTMLElement) {root = modelMainElement.firstElementChild as HTMLElement;- if (settingTabDef.id === "map" && missingMapServiceID) root.dataset.mapServiceID = missingMapServiceID;bindSettingSaveDelegation(root);const mountedRoot = root;void getSettingTab(settingTabDef.id).mount(mountedRoot, undefined, app).then(() => {diff --git a/app/src/protyle/render/av/attributePanel.ts b/app/src/protyle/render/av/attributePanel.tsindex f610566ce6..fbbb1ebf8f 100644--- a/app/src/protyle/render/av/attributePanel.ts+++ b/app/src/protyle/render/av/attributePanel.ts@@ -21,7 +21,6 @@ const refreshActions = new Set<TOperation>(["setAttrViewColIcon","setAttrViewColDesc","setAttrViewColAttributePanelVisibility",- "setAttrViewColLocationDefaultCoordinateSystem","setAttrViewName","setAttrViewCustomColors","updateAttrViewColTemplate",diff --git a/app/src/protyle/render/av/automation.ts b/app/src/protyle/render/av/automation.tsindex 9a8c91e81f..46150c685e 100644--- a/app/src/protyle/render/av/automation.ts+++ b/app/src/protyle/render/av/automation.ts@@ -26,7 +26,7 @@ interface AutomationRule extends Omit<AVAutomationRuleInput, "actions" | "conditconst clone = <T>(value: T): T => JSON.parse(JSON.stringify(value));const newFieldValue = (field: IAVColumn): IAVCellValue => field.type === "location" ? {type: "location",- location: createAVLocationReplacement({coordinateSystem: field.location?.defaultCoordinateSystem || "unknown"}),+ location: createAVLocationReplacement(),} : genEmptyFilterValue(field).value;const fieldsOf = (database: AVAttributeViewData): IAVColumn[] => (database?.keyValues || []).filter(item => item?.key && hasAVCapability(item.key.type, "editable"))diff --git a/app/src/protyle/render/av/batchEdit.ts b/app/src/protyle/render/av/batchEdit.tsindex 8a4a46b993..1c55730c5b 100644--- a/app/src/protyle/render/av/batchEdit.ts+++ b/app/src/protyle/render/av/batchEdit.ts@@ -148,9 +148,6 @@ const createBatchEditContext = (options: {const value = cell?.value ?cloneValue(cell.value) :createEmptyAVValue(options.field.id, options.field.type, itemID);- if (options.field.type === "location" && !cell?.value) {- value.location.coordinateSystem = options.field.location?.defaultCoordinateSystem || "unknown";- }value.id = value.id || cell?.id;value.keyID = options.field.id;value.blockID = itemID;diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.tsindex 312b6ca4a1..1d3008cf00 100644--- a/app/src/protyle/render/av/blockAttr.ts+++ b/app/src/protyle/render/av/blockAttr.ts@@ -157,9 +157,6 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPrcreateEmptyAVValue(item.key.id, item.key.type, primaryValue?.blockID),item.values?.[0] || {});- if (item.key.type === "location" && !item.values?.[0]) {- value.location.coordinateSystem = item.key.location?.defaultCoordinateSystem || "unknown";- }innerHTML += genAVAttributeRowHTML({nodeID: id,avID: table.avID,diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.tsindex 14fd68e0d2..41f316d4c0 100644--- a/app/src/protyle/render/av/col.ts+++ b/app/src/protyle/render/av/col.ts@@ -1,6 +1,5 @@import {hasAVCapability, isAVReadonlyType, isAVSelectType, isAVTimestampType} from "./capabilities";import {isTableLikeView} from "./viewType";-import {bindLocationDefaultCoordinateSystem} from "./locationColumn";import {isAVRenderData} from "./renderData";import {Menu} from "../../../plugin/Menu";import {MenuItem} from "../../../menus/Menu";@@ -162,12 +161,6 @@ export const getEditHTML = (options: {colData.options.forEach(item => {html += getColOptionHTML(item);});- } else if (colData.type === "location") {- html += `<button class="b3-menu__separator" data-id="separator_2"></button>-<button class="b3-menu__item" data-type="locationDefaultCoordinateSystem">- <span class="b3-menu__label">${window.siyuan.languages.defaultCoordinateSystem}</span>- <svg class="b3-menu__icon b3-menu__icon--small"><use xlink:href="#iconRight"></use></svg>-</button>`;} else if (colData.type === "number") {html += `<button class="b3-menu__separator" data-id="separator_2"></button><button class="b3-menu__item" data-type="numberFormat" data-format="${colData.numberFormat}">@@ -314,21 +307,6 @@ export const bindEditEvent = (options: {const colId = options.menuElement.querySelector(".b3-menu__item").getAttribute("data-col-id");const colData = getFieldsByData(options.data).find((item: IAVColumn) => item.id === colId);bindDateCalendarMenu(options.protyle, avID, colData, options.menuElement);- if (colData.type === "location") {- bindLocationDefaultCoordinateSystem({- menuElement: options.menuElement,- column: colData,- onChange: system => {- const previous = colData.location?.defaultCoordinateSystem || "unknown";- transaction(options.protyle, [{- action: "setAttrViewColLocationDefaultCoordinateSystem", id: colId, avID, data: system,- }], [{- action: "setAttrViewColLocationDefaultCoordinateSystem", id: colId, avID, data: previous,- }]);- colData.location = {...colData.location, defaultCoordinateSystem: system};- },- });- }const visibilityElement = options.menuElement.querySelector('[data-type="attributePanelVisibility"]');if (visibilityElement) {const choices: Array<[IAVColumn["attributePanelVisibility"], string]> = [diff --git a/app/src/protyle/render/av/fieldValueEditor.ts b/app/src/protyle/render/av/fieldValueEditor.tsindex 5422c6966d..d1b70dfc3e 100644--- a/app/src/protyle/render/av/fieldValueEditor.ts+++ b/app/src/protyle/render/av/fieldValueEditor.ts@@ -136,8 +136,7 @@ export const getValueInputHTML = (column: IAVColumn, fieldValue?: IAVNewItemFielreturn `<button type="button" class="b3-button b3-button--cancel${fieldValue?.mode === "currentTime" ? " fn__none" : ""}" data-role="field-value" data-value-type="lunarDate" data-lunar-value="${escapeAttr(JSON.stringify(date))}">${escapeHtml(formatDateValue(date, "lunar") || window.siyuan.languages.select)}</button>`;}if (column.type === "location") {- const location = value ? value.location || {coordinateSystem: "unknown"} :- {coordinateSystem: column.location?.defaultCoordinateSystem || "unknown"};+ const location = value?.location || {};return `<button type="button" class="b3-button b3-button--cancel fn__flex-1" data-role="field-value" data-value-type="location" data-location="${escapeAttr(encodeURIComponent(JSON.stringify(location)))}">${escapeHtml(getAVLocationDisplayText(location) || window.siyuan.languages.empty)}</button>`;}if (column.type === "checkbox") {diff --git a/app/src/protyle/render/av/locationColumn.test.ts b/app/src/protyle/render/av/locationColumn.test.tsdeleted file mode 100644index f34ad79c2c..0000000000--- a/app/src/protyle/render/av/locationColumn.test.ts+++ /dev/null@@ -1,160 +0,0 @@-import * as assert from "node:assert/strict";-import {readFileSync} from "node:fs";-import {test} from "node:test";-import {runInNewContext} from "node:vm";-import {ModuleKind, ScriptTarget, transpileModule} from "typescript";--const compiled = transpileModule(readFileSync("src/protyle/render/av/locationColumn.ts", "utf8"), {- compilerOptions: {module: ModuleKind.CommonJS, target: ScriptTarget.ES2020},-}).outputText;--test("location default CRS lists explicit systems and providers on desktop and mobile without guessing missing defaults", () => {- for (const [mobile, defaultSystem] of [[false, "gcj02"], [true, "gcj02"], [false, "unknown"], [true, "unknown"]] as const) {- const items: IMenu[] = [];- const mobileItems: IMenu[] = [];- const changes: string[] = [];- const listeners = new Map<string, (event: any) => void>();- const attributes = new Map<string, string>();- let shown = 0;- let closed = 0;- let focused = false;- const submenu = {querySelector: () => ({focus: () => focused = true})};- const element = {- dataset: {}, setAttribute: (name: string, value: string) => attributes.set(name, value), focus() {},- classList: {add() {}, remove() {}},- querySelector: () => submenu,- addEventListener: (type: string, handler: (event: any) => void) => listeners.set(type, handler),- getBoundingClientRect: () => ({left: 0, bottom: 20, height: 20}),- contains: (target: unknown) => target === submenu,- };- const api = {} as typeof import("./locationColumn");- runInNewContext(compiled, {- exports: api,- window: {siyuan: {languages: {- coordinateSystemWGS84: "WGS84 (OpenFreeMap)", coordinateSystemGCJ02: "GCJ-02 (AMap, Tencent Maps)",- coordinateSystemBD09: "BD-09 (Baidu Maps)", defaultCoordinateSystem: "Default", defaultCoordinateSystemTip: "New input only",- },- menus: {menu: {showSubMenu: () => shown++}}}},- require: (name: string) => ({- "../../../util/functions": {isMobile: () => mobile},- "../../../menus/Menu": {MenuItem: class {- element = element;- constructor(options: IMenu) {- assert.equal(options.icon, "iconGlobe");- assert.equal(options.action, "iconInfo");- assert.equal(options.actionLabel, "New input only");- items.push(...options.submenu);- }- }},- "../../../plugin/Menu": {Menu: class {- addItem(item: IMenu) { mobileItems.push(item); }- open() { shown++; }- }},- })[name],- });- const column = {id: "location", type: "location", location: {defaultCoordinateSystem: defaultSystem}} as IAVColumn;- api.bindLocationDefaultCoordinateSystem({- column,- menuElement: {- querySelector: () => ({replaceWith: (replacement: unknown) => assert.equal(replacement, element)}),- addEventListener() {},- closest: () => ({remove: () => closed++}),- } as unknown as HTMLElement,- onChange: system => changes.push(system),- });- assert.deepEqual(items.map(item => item.label), ["WGS84 (OpenFreeMap)", "GCJ-02 (AMap, Tencent Maps)", "BD-09 (Baidu Maps)"]);- assert.equal(attributes.has("title"), false);- assert.deepEqual(items.map(item => item.checked), [false, defaultSystem === "gcj02", false]);- assert.deepEqual(changes, []);- const event = {preventDefault() {}, stopPropagation() {}};- if (mobile) {- assert.equal(listeners.has("mouseenter"), false);- listeners.get("click")(event);- assert.equal(mobileItems.length, 3);- } else {- listeners.get("mouseenter")(event);- listeners.get("keydown")({...event, key: "ArrowRight"});- assert.equal(focused, true);- }- assert.ok(shown > 0);- items[1].click({} as HTMLElement, {} as MouseEvent);- assert.deepEqual(changes, defaultSystem === "gcj02" ? [] : ["gcj02"]);- items[0].click({} as HTMLElement, {} as MouseEvent);- assert.deepEqual(changes, defaultSystem === "gcj02" ? ["wgs84"] : ["gcj02", "wgs84"]);- assert.equal(closed, 2);- assert.equal(column.location.defaultCoordinateSystem, defaultSystem);- }-});--test("location field menus use a map marker without changing pin or coordinate system actions", () => {- const source = readFileSync("src/protyle/render/av/col.ts", "utf8");- const start = source.indexOf("export const getColIconByType =");- const end = source.indexOf("const addAttrViewColAnimation =", start);- const api = {} as {getColIconByType: (type: string) => string};- runInNewContext(transpileModule(source.slice(start, end), {- compilerOptions: {module: ModuleKind.CommonJS, target: ScriptTarget.ES2020},- }).outputText, {exports: api});- assert.equal(api.getColIconByType("location"), "iconMapPin");- assert.match(source, /id: "location",\s*icon: "iconMapPin"/);- assert.match(source, /icon: isFreeze \? "iconUnpin" : "iconPin"/);- const icons = readFileSync("appearance/icons/litheness/icon.js", "utf8");- const marker = icons.match(/<symbol id="iconMapPin"[^>]*>[\s\S]*?<\/symbol>/)?.[0];- assert.ok(marker);- assert.match(marker, /viewBox="0 0 24 24"/);- assert.match(marker, /stroke="currentColor" stroke-width="1.7"/);- assert.match(marker, /<circle cx="12" cy="10" r="3"/);- assert.match(readFileSync("appearance/icons/index.html", "utf8"), /#iconGlobe[\s\S]*?#iconMapPin[\s\S]*?#iconPublish/);-- const renderSource = readFileSync("src/protyle/render/av/render.ts", "utf8");- const renderStart = renderSource.indexOf("const getTableHTMLs =");- const renderEnd = renderSource.indexOf("export const getGroupTitleHTML =", renderStart);- const renderAPI = {} as {getTableHTMLs: (data: unknown, element: unknown) => string};- runInNewContext(transpileModule("export " + renderSource.slice(renderStart, renderEnd), {- compilerOptions: {module: ModuleKind.CommonJS, target: ScriptTarget.ES2020},- }).outputText, {- exports: renderAPI,- getColIconByType: api.getColIconByType,- escapeAttr: (value: string) => value || "",- escapeHtml: (value: string) => value || "",- unicode2Emoji: (value: string) => `custom-icon-${value}`,- getCalcValue: () => "",- window: {siyuan: {languages: {}}},- });- for (const avType of ["table", "list", "map"]) {- for (const icon of ["", "1f4cd"]) {- const html = renderAPI.getTableHTMLs({- columns: [{id: "location", type: "location", name: "Location", icon}], rows: [], rowCount: 0,- }, {dataset: {avType}});- if (icon) {- assert.match(html, /custom-icon-1f4cd/);- assert.doesNotMatch(html, /#iconMapPin/);- } else {- assert.match(html, /class="av__cellheadericon"><use xlink:href="#iconMapPin"/);- }- }- }-});--test("location default CRS setting constructs symmetric do and undo operations", () => {- const source = readFileSync("src/protyle/render/av/col.ts", "utf8");- const start = source.indexOf("export const bindEditEvent =");- const end = source.indexOf(" const visibilityElement =", start);- const api: {bindEditEvent?: (options: unknown) => void} = {};- const changes: unknown[] = [];- const column = {id: "key", type: "location", location: {defaultCoordinateSystem: "unknown"}} as IAVColumn;- runInNewContext(transpileModule(source.slice(start, end) + "};", {- compilerOptions: {module: ModuleKind.CommonJS, target: ScriptTarget.ES2020},- }).outputText, {- exports: api,- getFieldsByData: () => [column],- bindDateCalendarMenu: () => {},- bindLocationDefaultCoordinateSystem: (options: {onChange: (system: string) => void}) => options.onChange("bd09"),- transaction: (_protyle: unknown, doOperations: unknown, undoOperations: unknown) => changes.push([doOperations, undoOperations]),- });- api.bindEditEvent({data: {id: "database"}, menuElement: {querySelector: () => ({getAttribute: () => "key"})}});- assert.deepEqual(JSON.parse(JSON.stringify(changes)), [[- [{action: "setAttrViewColLocationDefaultCoordinateSystem", id: "key", avID: "database", data: "bd09"}],- [{action: "setAttrViewColLocationDefaultCoordinateSystem", id: "key", avID: "database", data: "unknown"}],- ]]);- assert.equal(column.location.defaultCoordinateSystem, "bd09");-});diff --git a/app/src/protyle/render/av/locationColumn.ts b/app/src/protyle/render/av/locationColumn.tsdeleted file mode 100644index 28bbd6fa3a..0000000000--- a/app/src/protyle/render/av/locationColumn.ts+++ /dev/null@@ -1,79 +0,0 @@-import {MenuItem} from "../../../menus/Menu";-import {Menu} from "../../../plugin/Menu";-import {isMobile} from "../../../util/functions";--export const bindLocationDefaultCoordinateSystem = (options: {- menuElement: HTMLElement;- column: IAVColumn;- onChange: (system: IAVCellLocationValue["coordinateSystem"]) => void;-}) => {- const target = options.menuElement.querySelector('[data-type="locationDefaultCoordinateSystem"]');- if (!target) {- return;- }- const languages = window.siyuan.languages;- const systems: Array<[IAVCellLocationValue["coordinateSystem"], string]> = [- ["wgs84", languages.coordinateSystemWGS84],- ["gcj02", languages.coordinateSystemGCJ02],- ["bd09", languages.coordinateSystemBD09],- ];- const items: IMenu[] = systems.map(([system, label]) => ({- label,- iconHTML: "",- checked: (options.column.location?.defaultCoordinateSystem || "unknown") === system,- click: () => {- if (system !== (options.column.location?.defaultCoordinateSystem || "unknown")) {- options.onChange(system);- }- options.menuElement.closest(".av__panel")?.remove();- },- }));- const item = new MenuItem({- icon: "iconGlobe",- label: languages.defaultCoordinateSystem,- action: "iconInfo",- actionLabel: languages.defaultCoordinateSystemTip,- submenu: items,- });- target.replaceWith(item.element);- item.element.dataset.type = "locationDefaultCoordinateSystem";- const submenu = item.element.querySelector<HTMLElement>(".b3-menu__submenu");- const show = () => {- item.element.classList.add("b3-menu__item--show");- window.siyuan.menus.menu.showSubMenu(submenu);- };- if (!isMobile()) {- item.element.addEventListener("mouseenter", show);- item.element.addEventListener("keydown", event => {- if (event.key === "ArrowRight") {- event.preventDefault();- event.stopPropagation();- show();- submenu.querySelector<HTMLButtonElement>(".b3-menu__item").focus();- } else if (event.key === "ArrowLeft" || event.key === "Escape") {- event.preventDefault();- event.stopPropagation();- item.element.classList.remove("b3-menu__item--show");- item.element.focus();- }- });- options.menuElement.addEventListener("mouseover", event => {- const hovered = (event.target as Element).closest(".b3-menu__item");- if (hovered && !item.element.contains(hovered)) {- item.element.classList.remove("b3-menu__item--show");- }- });- }- item.element.addEventListener("click", event => {- event.preventDefault();- event.stopPropagation();- if (isMobile()) {- const menu = new Menu(undefined, undefined, true);- items.forEach(choice => menu.addItem(choice));- const rect = item.element.getBoundingClientRect();- menu.open({x: rect.left, y: rect.bottom, h: rect.height});- } else {- show();- }- });-};diff --git a/app/src/protyle/render/av/locationEditor.test.ts b/app/src/protyle/render/av/locationEditor.test.tsindex 2d4ae0ea4c..91ca08ef53 100644--- a/app/src/protyle/render/av/locationEditor.test.ts+++ b/app/src/protyle/render/av/locationEditor.test.ts@@ -35,13 +35,12 @@ class Control {const createEditor = (options: {value?: IAVCellLocationValue;- unspecifiedSystem?: boolean;mobile?: boolean;isValid?: () => boolean;alreadyOpen?: boolean;save?: (value: IAVCellLocationValue) => Promise<void>;} = {}) => {- const fields = Object.fromEntries(["name", "latitude", "longitude", "coordinateSystem"]+ const fields = Object.fromEntries(["name", "latitude", "longitude"].map(name => [name, new Control()]));const buttons = Object.fromEntries(["save", "clear", "cancel"].map(name => [name, new Control()]));const container = new Control();@@ -115,7 +114,7 @@ const createEditor = (options: {},});const dialog = methods.openAVLocationEditor({- value: options.unspecifiedSystem ? options.value : {coordinateSystem: "wgs84", ...options.value},+ value: options.value,ownerElement: owner as HTMLElement,avBlockID: "database-block",isValid: options.isValid,@@ -140,45 +139,24 @@ describe("database location editor", () => {it("uses shared block form groups with one aligned coordinate row on desktop and mobile", () => {for (const mobile of [false, true]) {const editor = createEditor({mobile});- assert.equal((editor.markup.match(/<div class="b3-label b3-label--inner(?: fn__flex)?">/g) || []).length, 3);+ assert.equal((editor.markup.match(/<div class="b3-label b3-label--inner(?: fn__flex)?">/g) || []).length, 2);assert.doesNotMatch(editor.markup, /<label class="b3-label/);assert.match(editor.markup, /<div class="b3-label b3-label--inner fn__flex">\s*<label class="fn__flex-1">longitude/);assert.match(editor.markup, /<label class="fn__flex-1">latitude/);- assert.doesNotMatch(editor.markup, /coordinateOrder|pasteCoordinates|textarea|data-action="parse"/);+ assert.doesNotMatch(editor.markup, /coordinateSystem|coordinateOrder|pasteCoordinates|textarea|data-action="parse"/);assert.match(editor.markup, /data-action="save"/);}});- it("requires an explicit real CRS without relabeling old unspecified coordinates", async () => {- const value = {latitude: 25.04, longitude: 102.42, coordinateSystem: "unknown" as const};- const editor = createEditor({value, unspecifiedSystem: true});- assert.equal(editor.fields.coordinateSystem.value, "");- assert.doesNotMatch(editor.markup, /<option value="unknown">/);- editor.buttons.save.dispatch("click");- await editor.settle();- assert.equal(editor.saved.length, 0);- assert.equal(editor.error.textContent, "selectCoordinateSystem");- assert.equal(value.coordinateSystem, "unknown");- editor.fields.coordinateSystem.value = "gcj02";- editor.fields.coordinateSystem.dispatch("change");- editor.buttons.save.dispatch("click");- await editor.settle();- assert.equal(editor.saved[0].coordinateSystem, "gcj02");- assert.equal(editor.saved[0].latitude, value.latitude);- assert.equal(editor.saved[0].longitude, value.longitude);- });-it("opens saved coordinates without reinterpreting legacy source text on desktop and mobile", async () => {for (const mobile of [false, true]) {- for (const coordinateSystem of ["wgs84", "gcj02", "bd09"] as const) {- const value = {latitude: 20, longitude: 30, originalInput: "20,30", coordinateSystem};- const editor = createEditor({value, mobile});- assert.equal(editor.fields.latitude.value, "20");- assert.equal(editor.fields.longitude.value, "30");- editor.buttons.save.dispatch("click");- await editor.settle();- assert.deepEqual(editor.saved, []);- }+ const value = {latitude: 20, longitude: 30, originalInput: "20,30"};+ const editor = createEditor({value, mobile});+ assert.equal(editor.fields.latitude.value, "20");+ assert.equal(editor.fields.longitude.value, "30");+ editor.buttons.save.dispatch("click");+ await editor.settle();+ assert.deepEqual(editor.saved, []);}});@@ -227,27 +205,23 @@ describe("database location editor", () => {assert.equal(editor.lifecycle.includes("destroy"), false);});- it("saves valid manual coordinate fields with an explicit CRS on desktop and mobile", async () => {+ it("saves valid manual coordinate fields as WGS84 on desktop and mobile", async () => {for (const mobile of [false, true]) {- for (const coordinateSystem of ["wgs84", "gcj02", "bd09"] as const) {- for (const shortcut of [false, true]) {- const editor = createEditor({mobile, unspecifiedSystem: true});- editor.fields.longitude.value = "102.42";- editor.fields.longitude.dispatch("input");- editor.fields.latitude.value = "25.04";- editor.fields.latitude.dispatch("input");- editor.fields.coordinateSystem.value = coordinateSystem;- editor.fields.coordinateSystem.dispatch("change");- if (shortcut) {- editor.key("Enter", {ctrlKey: true});- } else {- editor.buttons.save.dispatch("click");- }- await editor.settle();- assert.equal(editor.error.textContent, "");- assert.deepEqual(editor.saved, [{name: "", latitude: 25.04, longitude: 102.42, coordinateSystem, originalInput: ""}]);- assert.equal(editor.lifecycle.includes("destroy"), true);+ for (const shortcut of [false, true]) {+ const editor = createEditor({mobile});+ editor.fields.longitude.value = "102.42";+ editor.fields.longitude.dispatch("input");+ editor.fields.latitude.value = "25.04";+ editor.fields.latitude.dispatch("input");+ if (shortcut) {+ editor.key("Enter", {ctrlKey: true});+ } else {+ editor.buttons.save.dispatch("click");}+ await editor.settle();+ assert.equal(editor.error.textContent, "");+ assert.deepEqual(editor.saved, [{name: "", latitude: 25.04, longitude: 102.42, originalInput: ""}]);+ assert.equal(editor.lifecycle.includes("destroy"), true);}}});@@ -260,17 +234,17 @@ describe("database location editor", () => {editor.fields.name.value = "New";editor.buttons.save.dispatch("click");await editor.settle();- assert.deepEqual(editor.saved, [{...initial, name: "New", coordinateSystem: "wgs84"}]);+ assert.deepEqual(editor.saved, [{...initial, name: "New"}]);assert.equal(initial.name, "Old");}}});- it("clears provenance on manual coordinates or CRS changes", async () => {- for (const field of ["latitude", "longitude", "coordinateSystem"]) {+ it("clears provenance on manual coordinates changes", async () => {+ for (const field of ["latitude", "longitude"]) {const editor = createEditor({value: {latitude: 0, longitude: 0, originalInput: "0,0"}});- editor.fields[field].value = field === "coordinateSystem" ? "gcj02" : "1";- editor.fields[field].dispatch(field === "coordinateSystem" ? "change" : "input");+ editor.fields[field].value = "1";+ editor.fields[field].dispatch("input");editor.buttons.save.dispatch("click");await editor.settle();assert.equal(editor.saved.length, 1);@@ -286,7 +260,7 @@ describe("database location editor", () => {editor.buttons.save.dispatch("click");await editor.settle();assert.deepEqual(editor.saved, [{name: "Office", latitude: null, longitude: null,- coordinateSystem: "wgs84", originalInput: ""}]);+ originalInput: ""}]);});it("opens very small stored decimal coordinates without invalid exponent notation", async () => {@@ -321,7 +295,7 @@ describe("database location editor", () => {const editor = createEditor({value: {name: "Office", latitude: 0, longitude: 0, originalInput: "Office"}});editor.buttons.clear.dispatch("click");await editor.settle();- assert.deepEqual(editor.saved, [{name: "", latitude: null, longitude: null, coordinateSystem: "unknown", originalInput: ""}]);+ assert.deepEqual(editor.saved, [{name: "", latitude: null, longitude: null, originalInput: ""}]);});it("prevents repeated submissions while saving", async () => {@@ -400,12 +374,4 @@ describe("database location editor", () => {assert.equal(editor.lifecycle.includes("blur"), true);});- it("requires an explicit valid coordinate system instead of silently guessing", async () => {- const editor = createEditor({value: {coordinateSystem: "custom" as IAVCellLocationValue["coordinateSystem"]}});- assert.equal(editor.fields.coordinateSystem.value, "");- editor.buttons.save.dispatch("click");- await editor.settle();- assert.equal(editor.error.textContent, "selectCoordinateSystem");- assert.equal(editor.saved.length, 0);- });});diff --git a/app/src/protyle/render/av/locationEditor.ts b/app/src/protyle/render/av/locationEditor.tsindex bd791d76d7..03d848fe9c 100644--- a/app/src/protyle/render/av/locationEditor.ts+++ b/app/src/protyle/render/av/locationEditor.ts@@ -11,7 +11,6 @@ import {areAVLocationsEqual,createAVLocationReplacement,formatAVLocationCoordinate,- isAVLocationCoordinateSystem,parseAVLocationCoordinate,validateAVLocation,} from "./locationValue";@@ -58,17 +57,6 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {<span class="fn__hr"></span><input class="b3-text-field fn__block" data-field="latitude" type="text" inputmode="decimal" spellcheck="false"></label></div>- <div class="b3-label b3-label--inner">- <label>${escapeHtml(languages.coordinateSystem)}- <span class="fn__hr"></span><select class="b3-select fn__block" data-field="coordinateSystem">- <option value="" disabled>${escapeHtml(languages.selectCoordinateSystem)}</option>- <option value="wgs84">${escapeHtml(languages.coordinateSystemWGS84)}</option>- <option value="gcj02">${escapeHtml(languages.coordinateSystemGCJ02)}</option>- <option value="bd09">${escapeHtml(languages.coordinateSystemBD09)}</option>- </select>- </label>- <div class="b3-label__text">${escapeHtml(languages.coordinateSystemTip)}</div>- </div><div class="ft__error fn__none" style="margin-top:8px" data-role="error" role="alert" aria-live="polite"></div></div><div class="b3-dialog__action">@@ -90,17 +78,12 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {const nameInput = root.querySelector<HTMLInputElement>('[data-field="name"]');const latitudeInput = root.querySelector<HTMLInputElement>('[data-field="latitude"]');const longitudeInput = root.querySelector<HTMLInputElement>('[data-field="longitude"]');- const systemInput = root.querySelector<HTMLSelectElement>('[data-field="coordinateSystem"]');const errorElement = root.querySelector<HTMLElement>('[data-role="error"]');const controls = root.querySelectorAll<HTMLInputElement | HTMLSelectElement | HTMLButtonElement>("input, select, button");nameInput.value = initial.name || "";latitudeInput.value = initial.latitude == null ? "" : formatAVLocationCoordinate(initial.latitude);longitudeInput.value = initial.longitude == null ? "" : formatAVLocationCoordinate(initial.longitude);- // 旧值未注明坐标系时保留空选项,必须明确选择,不能打开即重标。- systemInput.value = initial.coordinateSystem && initial.coordinateSystem !== "unknown" &&- isAVLocationCoordinateSystem(initial.coordinateSystem) ? initial.coordinateSystem : "";- const hasSelectedSystem = () => systemInput.value !== "unknown" && isAVLocationCoordinateSystem(systemInput.value);const setError = (message = "") => {errorElement.textContent = message;@@ -133,14 +116,9 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {dialog.destroy();return;}- let value: IAVCellLocationValue = {coordinateSystem: "unknown"};+ let value: IAVCellLocationValue = {};if (!clear) {- if (!hasSelectedSystem()) {- setError(languages.selectCoordinateSystem);- systemInput.focus();- return;- }- value = {name: nameInput.value.trim(), coordinateSystem: systemInput.value as IAVCellLocationValue["coordinateSystem"]};+ value = {name: nameInput.value.trim()};if (latitudeInput.value.trim() || longitudeInput.value.trim()) {value.latitude = parseAVLocationCoordinate(latitudeInput.value);value.longitude = parseAVLocationCoordinate(longitudeInput.value);@@ -188,7 +166,6 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {setError();};[latitudeInput, longitudeInput].forEach(input => input.addEventListener("input", clearProvenance));- systemInput.addEventListener("change", clearProvenance);root.addEventListener("compositionstart", () => composing = true);root.addEventListener("compositionend", () => composing = false);root.addEventListener("keydown", (event: KeyboardEvent) => {diff --git a/app/src/protyle/render/av/locationIntegration.test.ts b/app/src/protyle/render/av/locationIntegration.test.tsindex 90f6059008..2e1dcf56e9 100644--- a/app/src/protyle/render/av/locationIntegration.test.ts+++ b/app/src/protyle/render/av/locationIntegration.test.ts@@ -37,7 +37,7 @@ const cell = loadModule<typeof import("./cell")>("cell");test("location cells display longitude first in every layout, row attributes and rollups", () => {const value: IAVCellValue = {type: "location", location: {- name: "<Home>", latitude: 0, longitude: 180, coordinateSystem: "wgs84", originalInput: "untrusted raw",+ name: "<Home>", latitude: 0, longitude: 180, originalInput: "untrusted raw",}};for (const type of ["table", "list", "gallery", "kanban", "map"] as TAVView[]) {const html = cell.renderCell(value, 0, false, type);@@ -56,8 +56,8 @@ test("location cells display longitude first in every layout, row attributes and});test("location copies preserve canonical text for cells, nested leaves and templates", () => {- const first: IAVCellValue = {type: "location", location: {latitude: 20, longitude: 30, coordinateSystem: "wgs84"}};- const second: IAVCellValue = {type: "location", location: {name: "Other", latitude: 40, longitude: 50, coordinateSystem: "gcj02"}};+ const first: IAVCellValue = {type: "location", location: {latitude: 20, longitude: 30}};+ const second: IAVCellValue = {type: "location", location: {name: "Other", latitude: 40, longitude: 50}};const makeLeaf = (value?: IAVCellValue, template = false) => ({dataset: value ? {cellValue: encodeURIComponent(JSON.stringify(value))} : {},textContent: template ? "Custom display" : value ? locationValue.getAVLocationDisplayText(value.location) : "Ordinary text",@@ -73,9 +73,9 @@ test("location copies preserve canonical text for cells, nested leaves and templ}) as unknown as HTMLElement;assert.equal(cell.getCellText(firstLeaf as unknown as HTMLElement), "20, 30 [WGS84]");assert.equal(cell.getCellText(wrapper([firstLeaf])), "20, 30 [WGS84]");- assert.equal(cell.getCellText(wrapper([firstLeaf, makeLeaf(), secondLeaf])), "20, 30 [WGS84], Ordinary text, Other; 40, 50 [GCJ-02]");+ assert.equal(cell.getCellText(wrapper([firstLeaf, makeLeaf(), secondLeaf])), "20, 30 [WGS84], Ordinary text, Other; 40, 50 [WGS84]");assert.equal(cell.getCellText(firstLeaf as unknown as HTMLElement, "display"), "30, 20 [WGS84]");- assert.equal(cell.getCellText(wrapper([firstLeaf, makeLeaf(), secondLeaf]), "display"), "30, 20 [WGS84], Ordinary text, Other; 50, 40 [GCJ-02]");+ assert.equal(cell.getCellText(wrapper([firstLeaf, makeLeaf(), secondLeaf]), "display"), "30, 20 [WGS84], Ordinary text, Other; 50, 40 [WGS84]");assert.equal(cell.getCellText(makeLeaf(first, true) as unknown as HTMLElement), "Custom display");assert.equal(cell.getCellText(wrapper([makeLeaf(first, true)])), "Custom display");assert.equal(cell.getCellText(wrapper([makeLeaf(first, true)]), "display"), "Custom display");@@ -83,7 +83,7 @@ test("location copies preserve canonical text for cells, nested leaves and templassert.equal(cell.getCellText(attributeTemplate), "Custom display");assert.equal(cell.getCellText(attributeTemplate, "display"), "Custom display");assert.equal(cell.getCellValueText(first), "20, 30 [WGS84]");- assert.equal(locationValue.parseAVLocationCoordinates(cell.getCellValueText(first), "wgs84", "longitudeLatitude"), undefined);+ assert.equal(locationValue.parseAVLocationCoordinates(cell.getCellValueText(first), "longitudeLatitude"), undefined);assert.throws(() => cell.genCellValue("location", cell.getCellValueText(first)));});@@ -96,7 +96,7 @@ test("location hover text explicitly uses display order instead of clipboard ordtest("selected location copies keep structured values and latitude-first TSV independent of display", () => {const value: IAVCellValue = {type: "location", location: {- name: "Office", latitude: 20, longitude: 30, coordinateSystem: "wgs84", originalInput: "20,30",+ name: "Office", latitude: 20, longitude: 30, originalInput: "20,30",}};const selected = [{rowID: "row", rowIndex: 0, cell: {value}, column: {type: "location"}},{rowID: "row", rowIndex: 0, cell: {value}, column: {type: "location"}}] as import("./selectionState").IAVSelectedCell[];@@ -108,14 +108,19 @@ test("selected location copies keep structured values and latitude-first TSV ind});test("location generic paste keeps place names and rejects coordinates without guessing", () => {+ for (const coordinateSystem of ["wgs84", "gcj02", "bd09", "unknown"]) {+ const tagged = {latitude: 20, longitude: 30, coordinateSystem};+ assert.throws(() => cell.genCellValue("location", tagged), /Invalid WGS84 location/);+ assert.deepEqual(tagged, {latitude: 20, longitude: 30, coordinateSystem});+ }const raw = " Home ";const value = cell.genCellValue("location", raw);assert.equal(value.location.name, raw.trim());assert.equal(value.location.originalInput, raw);- assert.equal(value.location.coordinateSystem, "unknown");+ assert.equal("coordinateSystem" in value.location, false);assert.equal(value.location.latitude, null);assert.equal(value.location.longitude, null);- for (const text of ["31.20, 121.40", "91, 0", "Home; 0, 0 [unknown]"]) {+ for (const text of ["31.20, 121.40", "91, 0", "Home; 0, 0 [WGS84]"]) {assert.throws(() => cell.genCellValue("location", text));}assert.equal(inferAVPasteColumnType(["31.20, 121.40", "0, 0"]), "text");@@ -124,7 +129,7 @@ test("location generic paste keeps place names and rejects coordinates without gtest("location snapshots, drag fill and empty values retain structured zero coordinates", () => {const value: IAVCellValue = {type: "location", keyID: "key", blockID: "row", location: {- name: "Origin", latitude: 0, longitude: 0, coordinateSystem: "unknown", originalInput: "+0.0, -0.0",+ name: "Origin", latitude: 0, longitude: 0, originalInput: "+0.0, -0.0",}};assert.equal(cellValue.cellValueIsEmpty(value), false);const cloned = genAVDragFillValue(value, {id: "next", keyID: "other", blockID: "other-row"});@@ -160,7 +165,7 @@ test("location update, clear, structured paste and undo send full replacement pa"../../../dialog/message": {showMessage: (message: string) => warnings.push(message)},});const block = {dataset: {avId: "av", nodeId: "block"}, getAttribute: () => "table"} as unknown as HTMLElement;- const oldLocation: IAVCellLocationValue = {name: "Old", latitude: 20, longitude: 30, coordinateSystem: "wgs84", originalInput: "20,30"};+ const oldLocation: IAVCellLocationValue = {name: "Old", latitude: 20, longitude: 30, originalInput: "20,30"};const selected = (location?: IAVCellLocationValue): import("./selectionState").IAVSelectedCell[] => [{rowID: "row", colID: "key", groupID: "", colIndex: 0, rowIndex: 0,cell: {id: "value", color: "", bgColor: "", valueType: "location", value: {type: "location", location}},@@ -179,7 +184,7 @@ test("location update, clear, structured paste and undo send full replacement paassert.equal(operation.data.location.latitude, null);assert.equal(operation.data.location.longitude, null);assert.equal(operation.data.location.originalInput, "");- assert.equal(operation.data.location.coordinateSystem, "unknown");+ assert.equal("coordinateSystem" in operation.data.location, false);const undo = result.undoOperations[0];assert.equal(undo.action, "updateAttrViewCell");if (undo.action !== "updateAttrViewCell") {@@ -208,32 +213,30 @@ test("location update, clear, structured paste and undo send full replacement patest("template and automation value buttons preserve the structured location until explicitly edited", () => {const editor = loadModule<typeof import("./fieldValueEditor")>("fieldValueEditor");- const location: IAVCellLocationValue = {latitude: -90, longitude: -180, coordinateSystem: "gcj02", originalInput: "-90, -180"};+ const location: IAVCellLocationValue = {latitude: -90, longitude: -180, originalInput: "-90, -180"};const column = {type: "location"} as IAVColumn;const html = editor.getValueInputHTML(column, {mode: "static", value: {type: "location", location}});assert.match(html, /data-value-type="location"/);- assert.match(html, /-180, -90 \[GCJ-02\]/);+ assert.match(html, /-180, -90 \[WGS84\]/);const input = {dataset: {location: encodeURIComponent(JSON.stringify(location))}} as unknown as HTMLElement;assert.deepEqual(JSON.parse(JSON.stringify(editor.genFieldValue(column, input))), {type: "location", location: locationValue.createAVLocationReplacement(location),});});-test("new template and automation locations use the field default without changing existing unknown values", () => {+test("new template and automation locations use a single WGS84 value shape", () => {const editor = loadModule<typeof import("./fieldValueEditor")>("fieldValueEditor");- const column = {type: "location", location: {defaultCoordinateSystem: "gcj02"}} as IAVColumn;+ const column = {type: "location"} as IAVColumn;const readValue = (value?: IAVNewItemFieldValue) => {const html = editor.getValueInputHTML(column, value);return JSON.parse(decodeURIComponent(/data-location="([^"]+)"/.exec(html)[1])) as IAVCellLocationValue;};- assert.equal(readValue().coordinateSystem, "gcj02");- assert.equal(readValue({mode: "static", value: {type: "location"}}).coordinateSystem, "unknown");- assert.equal(readValue({mode: "static", value: {type: "location", location: null}}).coordinateSystem, "unknown");- for (const location of [{coordinateSystem: "unknown"}, {name: "Existing"}, {coordinateSystem: "wgs84"}]) {- const value = {mode: "static", value: {type: "location", location}} as IAVNewItemFieldValue;- assert.deepEqual(readValue(value), location);- assert.deepEqual(value.value.location, location);- }+ assert.deepEqual(readValue(), {});+ assert.deepEqual(readValue({mode: "static", value: {type: "location"}}), {});+ const location = {name: "Existing", latitude: 0, longitude: 0};+ const value = {mode: "static", value: {type: "location", location}} as IAVNewItemFieldValue;+ assert.deepEqual(readValue(value), location);+ assert.deepEqual(value.value.location, location);});test("template and automation location editors are cancelled with their source control", () => {diff --git a/app/src/protyle/render/av/locationValue.test.ts b/app/src/protyle/render/av/locationValue.test.tsindex e44479678a..fe9c76b483 100644--- a/app/src/protyle/render/av/locationValue.test.ts+++ b/app/src/protyle/render/av/locationValue.test.ts@@ -14,14 +14,23 @@ import {} from "./locationValue";describe("database location values", () => {+ it("rejects explicitly tagged development values without relabeling or mutating them", () => {+ for (const coordinateSystem of ["unknown", "wgs84", "gcj02", "bd09"]) {+ const value = {latitude: 20, longitude: 30, coordinateSystem};+ assert.equal(validateAVLocation(value), false);+ assert.throws(() => createAVLocationReplacement(value), /Invalid WGS84 location/);+ assert.equal(getAVLocationText(value), "");+ assert.deepEqual(value, {latitude: 20, longitude: 30, coordinateSystem});+ }+ });it("supports paired parentheses and explicit longitude-first order without guessing", () => {const source = " (102.42,25.04) ";- assert.equal(parseAVLocationCoordinates(source, "gcj02"), undefined);- assert.deepEqual(parseAVLocationCoordinates(source, "gcj02", "longitudeLatitude"), {- latitude: 25.04, longitude: 102.42, coordinateSystem: "gcj02", originalInput: source,+ assert.equal(parseAVLocationCoordinates(source), undefined);+ assert.deepEqual(parseAVLocationCoordinates(source, "longitudeLatitude"), {+ latitude: 25.04, longitude: 102.42, originalInput: source,});- assert.equal(parseAVLocationCoordinates("(20,30)", "wgs84")?.latitude, 20);- assert.equal(parseAVLocationCoordinates("(20,30)", "wgs84", "longitudeLatitude")?.latitude, 30);+ assert.equal(parseAVLocationCoordinates("(20,30)")?.latitude, 20);+ assert.equal(parseAVLocationCoordinates("(20,30)", "longitudeLatitude")?.latitude, 30);for (const text of ["(20,30", "20,30)", "((20,30))", "(20),30", "[20,30]"]) {assert.equal(parseAVLocationCoordinates(text), undefined, text);}@@ -29,13 +38,13 @@ describe("database location values", () => {it("keeps ordinary text as names without inference and replaces stale coordinates", () => {for (const text of [" Office ", "https://maps.example.com/?lat=31&lon=121", "geo:31,121"]) {assert.deepEqual(createAVLocationFromText(text), {- name: text.trim(), latitude: null, longitude: null, coordinateSystem: "unknown", originalInput: text,+ name: text.trim(), latitude: null, longitude: null, originalInput: text,});}});it("requires the explicit import flow for coordinate-looking or canonical pasted text", () => {- for (const source of ["31.2,121.5", "(102.42,25.04)", " (20,30) ", "31,", ",121", "31,121,0", "181,91", "1e-7,-1e-7", "NaN,Infinity", "0,0 [unknown]",+ for (const source of ["31.2,121.5", "(102.42,25.04)", " (20,30) ", "31,", ",121", "31,121,0", "181,91", "1e-7,-1e-7", "NaN,Infinity", "0,0 [WGS84]","Office; 0, 0 [GCJ-02]", "Office; 0, 0 [BD-09]"]) {assert.equal(isAVLocationCoordinateInput(source), true, source);assert.throws(() => createAVLocationFromText(source));@@ -47,23 +56,25 @@ describe("database location values", () => {it("produces complete replacement payloads for clearing merged backend values", () => {assert.deepEqual(createAVLocationReplacement(), {- name: "", latitude: null, longitude: null, coordinateSystem: "unknown", originalInput: "",+ name: "", latitude: null, longitude: null, originalInput: "",});assert.deepEqual(createAVLocationReplacement({name: "Office", latitude: 0, longitude: 0}), {- name: "Office", latitude: 0, longitude: 0, coordinateSystem: "unknown", originalInput: "",+ name: "Office", latitude: 0, longitude: 0, originalInput: "",});});it("validates name-only values and paired, finite coordinates including zero and boundaries", () => {- for (const value of [undefined, {}, {name: "Office"}, {coordinateSystem: "" as const}, {latitude: null, longitude: null},+ for (const value of [undefined, {}, {name: "Office"}, {latitude: null, longitude: null},{latitude: 0, longitude: 0}, {latitude: -90, longitude: 180}, {latitude: 90, longitude: -180}]) {assert.equal(validateAVLocation(value), true);}- for (const value of [{latitude: 0}, {longitude: 0}, {latitude: null, longitude: 0},+ for (const value of [[], 0, false, "", {crs: "gcj02", latitude: 20, longitude: 30},+ {CoordinateSystem: "gcj02", latitude: 20, longitude: 30},+ {latitude: 0}, {longitude: 0}, {latitude: null, longitude: 0},{latitude: 90.001, longitude: 0}, {latitude: -90.001, longitude: 0},{latitude: 0, longitude: 180.001}, {latitude: 0, longitude: -180.001},{latitude: NaN, longitude: 0}, {latitude: 0, longitude: Infinity},- {coordinateSystem: "WGS84"}, {latitude: "0", longitude: 0}]) {+ {coordinateSystem: "WGS84"}, {latitude: "0", longitude: 0}] as unknown[]) {assert.equal(validateAVLocation(value as IAVCellLocationValue), false);}});@@ -71,13 +82,13 @@ describe("database location values", () => {it("imports only the explicitly specified latitude, longitude order and exact source", () => {const source = " +31.23040, 121.47370\n";assert.deepEqual(parseAVLocationCoordinates(source), {- latitude: 31.2304, longitude: 121.4737, coordinateSystem: "unknown", originalInput: source,+ latitude: 31.2304, longitude: 121.4737, originalInput: source,});- assert.deepEqual(parseAVLocationCoordinates("0, -0", "gcj02"), {- latitude: 0, longitude: -0, coordinateSystem: "gcj02", originalInput: "0, -0",+ assert.deepEqual(parseAVLocationCoordinates("0, -0"), {+ latitude: 0, longitude: -0, originalInput: "0, -0",});assert.equal(parseAVLocationCoordinates("121.4737,31.2304"), undefined);- assert.equal(parseAVLocationCoordinates(".5,-.25", "bd09")?.latitude, .5);+ assert.equal(parseAVLocationCoordinates(".5,-.25")?.latitude, .5);});it("rejects malformed, out-of-range, partial, nondecimal, and service-link imports", () => {@@ -86,18 +97,15 @@ describe("database location values", () => {"geo:31,121", "https://example.com/?lat=31&lon=121"]) {assert.equal(parseAVLocationCoordinates(source), undefined, source);}- assert.equal(parseAVLocationCoordinates("0,0", "wgs84x" as IAVCellLocationValue["coordinateSystem"]), undefined);});- it("renders the canonical text without interpreting the coordinate system", () => {+ it("renders the canonical text with a fixed WGS84 label", () => {assert.equal(getAVLocationText(), "");assert.equal(getAVLocationText({name: " Office "}), "Office");- assert.equal(getAVLocationText({latitude: 0, longitude: 0}), "0, 0 [unknown]");- for (const system of ["unknown", "wgs84", "gcj02", "bd09"] as const) {- assert.equal(getAVLocationText({name: "Office", latitude: 31.2, longitude: 121.5, coordinateSystem: system}),- `Office; 31.2, 121.5 [${{unknown: "unknown", wgs84: "WGS84", gcj02: "GCJ-02", bd09: "BD-09"}[system]}]`);- }- assert.equal(getAVLocationText({latitude: 1e-7, longitude: -1e-8}), "0.0000001, -0.00000001 [unknown]");+ assert.equal(getAVLocationText({latitude: 0, longitude: 0}), "0, 0 [WGS84]");+ assert.equal(getAVLocationText({name: "Office", latitude: 31.2, longitude: 121.5}),+ "Office; 31.2, 121.5 [WGS84]");+ assert.equal(getAVLocationText({latitude: 1e-7, longitude: -1e-8}), "0.0000001, -0.00000001 [WGS84]");assert.equal(formatAVLocationCoordinate(1.234e-7), "0.0000001234");assert.equal(formatAVLocationCoordinate(1e21), "1000000000000000000000");assert.equal(formatAVLocationCoordinate(-0), "0");@@ -106,28 +114,26 @@ describe("database location values", () => {it("displays longitude first while preserving canonical text, named fields and provenance", () => {assert.equal(getAVLocationDisplayText(), "");assert.equal(getAVLocationDisplayText({name: " Office "}), "Office");- for (const system of ["unknown", "wgs84", "gcj02", "bd09"] as const) {- const location = {name: "Office", latitude: 20, longitude: 30, coordinateSystem: system, originalInput: "20,30"};- const before = {...location};- const label = {unknown: "unknown", wgs84: "WGS84", gcj02: "GCJ-02", bd09: "BD-09"}[system];- assert.equal(getAVLocationDisplayText(location), `Office; 30, 20 [${label}]`);- assert.equal(getAVLocationText(location), `Office; 20, 30 [${label}]`);- assert.deepEqual(location, before);- assert.equal(parseAVLocationCoordinates(getAVLocationText(location), system, "longitudeLatitude"), undefined);- }- assert.equal(getAVLocationDisplayText({latitude: 1e-7, longitude: -1e-8}), "-0.00000001, 0.0000001 [unknown]");+ const location = {name: "Office", latitude: 20, longitude: 30, originalInput: "20,30"};+ const before = {...location};+ const label = "WGS84";+ assert.equal(getAVLocationDisplayText(location), `Office; 30, 20 [${label}]`);+ assert.equal(getAVLocationText(location), `Office; 20, 30 [${label}]`);+ assert.deepEqual(location, before);+ assert.equal(parseAVLocationCoordinates(getAVLocationText(location), "longitudeLatitude"), undefined);+ assert.equal(getAVLocationDisplayText({latitude: 1e-7, longitude: -1e-8}), "-0.00000001, 0.0000001 [WGS84]");});it("excludes provenance from emptiness, display, and semantic equality", () => {- const sourceOnly = {originalInput: "private imported source", coordinateSystem: "wgs84" as const};+ const sourceOnly = {originalInput: "private imported source"};assert.equal(isAVLocationEmpty(sourceOnly), true);assert.equal(getAVLocationText(sourceOnly), "");assert.equal(isAVLocationEmpty({name: " "}), true);assert.equal(isAVLocationEmpty({latitude: 0, longitude: 0}), false);assert.equal(isAVLocationEmpty({name: "Office"}), false);assert.equal(areAVLocationsEqual({name: "Office", originalInput: "a"},- {name: "Office", coordinateSystem: "unknown", originalInput: "b"}), true);+ {name: "Office", originalInput: "b"}), true);assert.equal(areAVLocationsEqual({latitude: 0, longitude: 0},- {latitude: 0, longitude: 0, coordinateSystem: "wgs84"}), false);+ {latitude: 0, longitude: 1}), false);});});diff --git a/app/src/protyle/render/av/locationValue.ts b/app/src/protyle/render/av/locationValue.tsindex ca5952b1f8..baba8fdbef 100644--- a/app/src/protyle/render/av/locationValue.ts+++ b/app/src/protyle/render/av/locationValue.ts@@ -1,26 +1,26 @@-const coordinateSystems = new Set(["unknown", "wgs84", "gcj02", "bd09"]);const decimalCoordinate = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/;const coordinateInputNumber = "[+-]?(?:(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|Infinity|NaN)";const coordinateInput = new RegExp(`^${coordinateInputNumber}$`, "i");const canonicalInput = new RegExp(`(?:^|;\\s*)${coordinateInputNumber}\\s*,\\s*${coordinateInputNumber}\\s*\\[[^\\]]+\\]\\s*$`, "i");+const locationFields = new Set(["name", "latitude", "longitude", "originalInput"]);-export const isAVLocationCoordinateSystem = (value: string): value is IAVCellLocationValue["coordinateSystem"] => {- return coordinateSystems.has(value);-};+const isLocationObject = (location: unknown): location is IAVCellLocationValue =>+ !!location && typeof location === "object" && !Array.isArray(location) &&+ Object.keys(location).every(key => locationFields.has(key));export const hasAVLocationCoordinates = (location?: IAVCellLocationValue) => {- return typeof location?.latitude === "number" && Number.isFinite(location.latitude) &&+ return isLocationObject(location) &&+ typeof location.latitude === "number" && Number.isFinite(location.latitude) &&location.latitude >= -90 && location.latitude <= 90 &&typeof location.longitude === "number" && Number.isFinite(location.longitude) &&location.longitude >= -180 && location.longitude <= 180;};export const validateAVLocation = (location?: IAVCellLocationValue) => {- if (!location) {+ if (location == null) {return true;}- if (location.coordinateSystem !== undefined && location.coordinateSystem !== "" &&- !isAVLocationCoordinateSystem(location.coordinateSystem)) {+ if (!isLocationObject(location)) {return false;}if ((location.name !== undefined && typeof location.name !== "string") ||@@ -55,10 +55,8 @@ const formatAVLocationText = (location?: IAVCellLocationValue, longitudeFirst =if (!hasAVLocationCoordinates(location)) {return name;}- const system = location.coordinateSystem || "unknown";- const label = {unknown: "unknown", wgs84: "WGS84", gcj02: "GCJ-02", bd09: "BD-09"}[system] || "unknown";const coordinates = longitudeFirst ? [location.longitude, location.latitude] : [location.latitude, location.longitude];- return `${name ? name + "; " : ""}${coordinates.map(formatAVLocationCoordinate).join(", ")} [${label}]`;+ return `${name ? name + "; " : ""}${coordinates.map(formatAVLocationCoordinate).join(", ")} [WGS84]`;};// 复制、类型转换和内核导出保持既有的纬度、经度文本契约。@@ -68,13 +66,17 @@ export const getAVLocationText = (location?: IAVCellLocationValue) => formatAVLoexport const getAVLocationDisplayText = (location?: IAVCellLocationValue) => formatAVLocationText(location, true);// 事务按字段合并,删除旧坐标或来源时必须显式发送空值。-export const createAVLocationReplacement = (location?: IAVCellLocationValue): IAVCellLocationValue => ({- name: location?.name?.trim() || "",- latitude: location?.latitude ?? null,- longitude: location?.longitude ?? null,- coordinateSystem: location?.coordinateSystem || "unknown",- originalInput: location?.originalInput ?? "",-});+export const createAVLocationReplacement = (location?: IAVCellLocationValue): IAVCellLocationValue => {+ if (!validateAVLocation(location)) {+ throw new Error("Invalid WGS84 location");+ }+ return {+ name: location?.name?.trim() || "",+ latitude: location?.latitude ?? null,+ longitude: location?.longitude ?? null,+ originalInput: location?.originalInput ?? "",+ };+};export const isAVLocationCoordinateInput = (text: string) => {const trimmed = text.trim();@@ -103,19 +105,17 @@ export const parseAVLocationCoordinate = (text: string) => {// 只按用户明确选择的顺序解析,不根据范围猜测顺序或解析地图服务链接。export const parseAVLocationCoordinates = (text: string,- coordinateSystem: IAVCellLocationValue["coordinateSystem"] = "unknown",order: "latitudeLongitude" | "longitudeLatitude" = "latitudeLongitude"):IAVCellLocationValue | undefined => {- coordinateSystem = coordinateSystem || "unknown";const trimmed = text.trim();const unwrapped = trimmed.startsWith("(") && trimmed.endsWith(")") ? trimmed.slice(1, -1) : trimmed;const parts = unwrapped.split(",");- if (parts.length !== 2 || !isAVLocationCoordinateSystem(coordinateSystem)) {+ if (parts.length !== 2) {return undefined;}const latitude = parseAVLocationCoordinate(parts[order === "longitudeLatitude" ? 1 : 0]);const longitude = parseAVLocationCoordinate(parts[order === "longitudeLatitude" ? 0 : 1]);- const value = {latitude, longitude, coordinateSystem, originalInput: text};+ const value = {latitude, longitude, originalInput: text};return hasAVLocationCoordinates(value) ? value : undefined;};@@ -123,6 +123,5 @@ export const parseAVLocationCoordinates = (text: string,export const areAVLocationsEqual = (left?: IAVCellLocationValue, right?: IAVCellLocationValue) => {return (left?.name?.trim() || "") === (right?.name?.trim() || "") &&(left?.latitude ?? null) === (right?.latitude ?? null) &&- (left?.longitude ?? null) === (right?.longitude ?? null) &&- (left?.coordinateSystem || "unknown") === (right?.coordinateSystem || "unknown");+ (left?.longitude ?? null) === (right?.longitude ?? null);};diff --git a/app/src/protyle/render/av/map/bootstrap.ts b/app/src/protyle/render/av/map/bootstrap.tsindex 60383a5826..751af17334 100644--- a/app/src/protyle/render/av/map/bootstrap.ts+++ b/app/src/protyle/render/av/map/bootstrap.ts@@ -1,52 +1,23 @@-import {AVMapProvider} from "./protocol";+import {AVMapProvider, isAVMapProvider} from "./protocol";import {prepareAVMapAssets} from "./providersLoader";-// 第二阶段策略与响应头相交;不保留本地来源、nonce 或可重用的脚本 hash。-// 删除 meta 不能撤回已经施加的策略。外层 wrapper 另行约束跨文档导航。+// This intersects the response policy. Local origins are removed before creating any Worker.export const getAVMapLockedPolicy = (provider: AVMapProvider): string => {- let scripts = "'none'";- let connect = "'none'";- let images = "data: blob:";- let workers = "'none'";- switch (provider) {- case "openfreemap":- connect = "https://tiles.openfreemap.org";- images += " https://tiles.openfreemap.org";- workers = "blob:";- break;- case "amap":- scripts = "https://webapi.amap.com https://restapi.amap.com https://jsapi-service.amap.com";- workers = "blob:";- connect = "https://webapi.amap.com https://restapi.amap.com https://vdata.amap.com https://jsapi.amap.com";- images += " https://webapi.amap.com https://a.amap.com https://*.is.autonavi.com";- break;- case "tencent":- scripts = "https://map.qq.com";- connect = "https://map.qq.com https://apis.map.qq.com https://*.map.qq.com";- images += " https://map.qq.com https://*.map.qq.com";- break;- case "baidu":- scripts = "https://api.map.baidu.com";- connect = "https://api.map.baidu.com https://*.map.bdimg.com https://*.bdimg.com";- images += " https://api.map.baidu.com https://*.map.bdimg.com https://*.bdimg.com https://*.map.baidu.com";- break;- }- return `default-src 'none'; script-src ${scripts}; connect-src ${connect}; img-src ${images}; ` +- `style-src 'unsafe-inline'; font-src 'none'; worker-src ${workers}; child-src ${provider === "openfreemap" ? workers : "'none'"}; ` ++ if (!isAVMapProvider(provider)) throw new Error("invalidConfiguration");+ return "default-src 'none'; script-src 'none'; connect-src https://tiles.openfreemap.org; " ++ "img-src data: blob: https://tiles.openfreemap.org; " ++ "style-src 'unsafe-inline'; font-src 'none'; worker-src blob:; child-src blob:; " +"frame-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'";};export const prepareAVMapBootstrap = async (scope: Window, provider: AVMapProvider, signal: AbortSignal): Promise<() => void> => {const assets = await prepareAVMapAssets(scope, provider, signal);try {- if (signal.aborted) {- throw new Error("hostUnavailable");- }+ if (signal.aborted) throw new Error("hostUnavailable");const policy = scope.document.createElement("meta");policy.httpEquiv = "Content-Security-Policy";policy.content = getAVMapLockedPolicy(provider);scope.document.head.appendChild(policy);- // 此时尚未构造任何 Map、Worker 或 Worker blob。后续创建继承收紧后的策略。assets.lock();return assets.destroy;} catch (_error) {diff --git a/app/src/protyle/render/av/map/desktopTransport.test.ts b/app/src/protyle/render/av/map/desktopTransport.test.tsindex ec781548e3..bc46fc86c2 100644--- a/app/src/protyle/render/av/map/desktopTransport.test.ts+++ b/app/src/protyle/render/av/map/desktopTransport.test.ts@@ -70,7 +70,7 @@ const fixture = (warnings: unknown[][] = []) => {let ready = 0;const api = load(ipc, false, warnings);const host = api.createDesktopAVMapHost(container, {provider: "openfreemap", theme: "light",- credentials: {apiKey: "do-not-send", extra: "private"}, onError: (value: string) => errors.push(value),+ onError: (value: string) => errors.push(value),onMarkerClick: (...args: unknown[]) => clicks.push(args), onReady: () => ready++});const instanceID = calls[0][1].instanceID;return {host, calls, listeners, domListeners, frames, timers, errors, clicks, doc, container, rect,@@ -171,16 +171,14 @@ describe("desktop map transport", () => {assert.equal(warnings.length, mapCSPResourceCodes.length);assert.equal(JSON.stringify(warnings).includes("secret"), false);});- it("bounds public CSP diagnostics per instance and rejects raw addresses", () => {+ it("deduplicates allowed resources and rejects arbitrary public hostnames", () => {const warnings: unknown[][] = [];const f = fixture(warnings);for (let i = 0; i < 100; i++) {- const value = {type: "diagnostic", code: "cspConnect", resource: `https:map${i}.amap.com`};- f.reply(value);- f.reply(value);+ f.reply({type: "diagnostic", code: "cspConnect", resource: "https:tiles.openfreemap.org"});+ f.reply({type: "diagnostic", code: "cspConnect", resource: "https:map" + i + ".invalid"});}- assert.equal(warnings.length, 64);- assert.deepEqual(warnings[0], ["Database map diagnostic:", "cspConnect", "https:map0.amap.com"]);+ assert.deepEqual(warnings, [["Database map diagnostic:", "cspConnect", "https:tiles.openfreemap.org"]]);f.host.destroy();});it("logs only approved capability reason codes and never exception or response details", async () => {@@ -419,11 +417,11 @@ describe("desktop map transport", () => {globalThis.ResizeObserver = Observer as any;const f = fixture();try {- const point = {id: "row", longitude: 1, latitude: 2, coordinateSystem: "wgs84", name: "private"};+ const point = {id: "row", longitude: 1, latitude: 2, name: "private"};f.host.setPoints([point], 1);f.host.setTheme("dark");f.host.fit();- assert.deepEqual(f.calls[0][1].credentials, {});+ assert.equal(f.calls[0][1].credentials, undefined);assert.match(f.calls[0][1].instanceID, /^[a-f0-9]{48}$/);await f.created();f.reply({type: "ready", instanceID: "old"});diff --git a/app/src/protyle/render/av/map/desktopTransport.ts b/app/src/protyle/render/av/map/desktopTransport.tsindex 28a073d069..edb04d41c9 100644--- a/app/src/protyle/render/av/map/desktopTransport.ts+++ b/app/src/protyle/render/av/map/desktopTransport.ts@@ -4,7 +4,7 @@ import {ipcRenderer} from "electron";import type {AVMapHost, AVMapHostOptions} from "./host";import {AV_MAP_PROTOCOL_VERSION, AVMapCommand, AVMapErrorCode, AVMapPoint, isAVMapHostErrorCode, isAVMapProvider, isAVMapRevision,- isAVMapTheme, parseAVMapReply, sanitizeAVMapCredentials, sanitizeAVMapPoints,+ isAVMapTheme, parseAVMapReply, sanitizeAVMapPoints,} from "./protocol";interface MapRect { x: number; y: number; width: number; height: number; }@@ -74,8 +74,7 @@ const mapDiagnosticCodes = new Set(["hostSetupFailed", "assetUnavailable", "documentLoadFailed", "bootstrapTimeout", "sdkTimeout","providerRequestDenied", "providerInsecureRequest", "providerHTTPFailure", "providerNetworkFailure","cspScript", "cspWorker", "cspConnect", "cspImage", "cspStyle", "cspEval", "cspWasm",- "storageUnavailable", "webglUnavailable", "amapInvalidKey", "amapInvalidSecurityCode",- "amapDomainMismatch", "amapPlatformMismatch", "geometryInvalid", "geometryLogicalBounds",+ "storageUnavailable", "webglUnavailable", "geometryInvalid", "geometryLogicalBounds","geometryCropBounds", "geometryWindowBounds", "geometryRoundedEmpty",]);const mapCSPDiagnosticCodes = new Set(["cspScript", "cspWorker", "cspConnect", "cspImage", "cspStyle", "cspEval", "cspWasm"]);@@ -86,9 +85,7 @@ const mapCSPResourceCodes = new Set([const isMapCSPResource = (value: unknown): value is string => {if (typeof value !== "string" || value.length > 102) return false;if (mapCSPResourceCodes.has(value)) return true;- const hostname = /^https?:([a-z0-9.-]+)$/.exec(value)?.[1];- return !!hostname && hostname.length <= 96 && /(?:^|\.)(?:amap\.com|autonavi\.com|alicdn\.com|taobao\.com)$/.test(hostname) &&- hostname.split(".").every(label => /^[a-z](?:[a-z0-9-]{0,22}[a-z0-9])?$/.test(label));+ return value === "https:tiles.openfreemap.org" || value === "http:tiles.openfreemap.org";};const logMapDiagnostic = (code: unknown, resource?: unknown) => {if (typeof code === "string" && mapDiagnosticCodes.has(code)) {@@ -351,7 +348,7 @@ export const createDesktopAVMapHost = (container: HTMLElement, options: AVMapHossetPoints: (input, nextRevision) => {if (!destroyed && isAVMapRevision(nextRevision) && nextRevision > revision) {revision = nextRevision;- points = sanitizeAVMapPoints(input, options.provider);+ points = sanitizeAVMapPoints(input);ids = new Set(points.map((point) => point.id));postPoints();}@@ -388,8 +385,7 @@ export const createDesktopAVMapHost = (container: HTMLElement, options: AVMapHostimeout = scope.setTimeout(() => fail("hostReadyTimeout"), 90000);let reply: {version?: number; instanceID?: string; error?: unknown; diagnostic?: unknown};try {- reply = await ipc.invoke("siyuan-map-create", {...envelope(), provider: options.provider,- credentials: sanitizeAVMapCredentials(options.credentials, options.provider), theme});+ reply = await ipc.invoke("siyuan-map-create", {...envelope(), provider: options.provider, theme});} catch (_error) {fail("hostCreateRejected");return;diff --git a/app/src/protyle/render/av/map/host.test.ts b/app/src/protyle/render/av/map/host.test.tsindex 089f37aee0..bf4110097e 100644--- a/app/src/protyle/render/av/map/host.test.ts+++ b/app/src/protyle/render/av/map/host.test.ts@@ -74,7 +74,7 @@ describe("map host boundary", () => {let ready = 0;const clicked: any[] = [];const host = createAVMapHost(container as unknown as HTMLElement, {- provider: "openfreemap", theme: "light", credentials: {apiKey: "fixture-key", token: "secret"} as any,+ provider: "openfreemap", theme: "light",onReady: () => ready++, onMarkerClick: (...args) => clicked.push(args), onError: () => assert.fail("unexpected error"),});cleanups.push(host.destroy);@@ -87,7 +87,7 @@ describe("map host boundary", () => {const onMessage = listeners.get("message");const handshake = {source: iframe.contentWindow, origin: scope.location.origin, ports: [] as unknown[],data: {version: 1, type: "wrapperHello", instanceID, nonce}};- const point = {id: "row-1", longitude: 0, latitude: 0, coordinateSystem: "wgs84" as const};+ const point = {id: "row-1", longitude: 0, latitude: 0};host.setPoints([{...point, title: "private"} as any], 1);host.fit();onMessage({...handshake, source: {}});@@ -109,7 +109,7 @@ describe("map host boundary", () => {assert.equal(transfers.length, 2);const port = channels[0].port1 as Port;assert.deepEqual(port.messages[0], {version: 1, instanceID, type: "init", provider: "openfreemap",- credentials: {}, theme: "light"});+ theme: "light"});const reply = (data: Record<string, unknown>) => port.onmessage({data: {version: 1, instanceID, ...data}});reply({type: "ready", instanceID: "old"});assert.equal(ready, 0);diff --git a/app/src/protyle/render/av/map/host.ts b/app/src/protyle/render/av/map/host.tsindex c1faa0d859..c59e700e0c 100644--- a/app/src/protyle/render/av/map/host.ts+++ b/app/src/protyle/render/av/map/host.ts@@ -1,13 +1,12 @@import {- AV_MAP_PROTOCOL_VERSION, AVMapCommand, AVMapCredentials, AVMapErrorCode, AVMapPoint, AVMapProvider, AVMapTheme,+ AV_MAP_PROTOCOL_VERSION, AVMapCommand, AVMapErrorCode, AVMapPoint, AVMapProvider, AVMapTheme,isAVMapProvider, isAVMapRevision, isAVMapTheme, parseAVMapReply,- sanitizeAVMapCredentials, sanitizeAVMapPoints,+ sanitizeAVMapPoints,} from "./protocol";import {getAVMapHostCapabilities, isAVMapBootstrapMessage} from "./hostCapabilities";export interface AVMapHostOptions {provider: AVMapProvider;- credentials?: AVMapCredentials;theme: AVMapTheme;title?: string;onReady?: () => void;@@ -134,8 +133,7 @@ export const createAVMapHost = (container: HTMLElement, options: AVMapHostOptionport.start();iframe.contentWindow.postMessage({...envelope(), type: "connect", nonce}, scope.location.origin, [channel.port2]);// 端口建立后清除全局监听;外部 SDK 加载期间不再接受窗口消息。- send({...envelope(), type: "init", provider: options.provider,- credentials: sanitizeAVMapCredentials(options.credentials, options.provider), theme});+ send({...envelope(), type: "init", provider: options.provider, theme});};const host: AVMapHost = {@@ -144,7 +142,7 @@ export const createAVMapHost = (container: HTMLElement, options: AVMapHostOptionreturn;}revision = nextRevision;- points = sanitizeAVMapPoints(input, options.provider);+ points = sanitizeAVMapPoints(input);ids = new Set(points.map((point) => point.id));postPoints();},diff --git a/app/src/protyle/render/av/map/hostRuntime.test.ts b/app/src/protyle/render/av/map/hostRuntime.test.tsindex 2b32c8f301..7014f29ec5 100644--- a/app/src/protyle/render/av/map/hostRuntime.test.ts+++ b/app/src/protyle/render/av/map/hostRuntime.test.ts@@ -26,15 +26,15 @@ describe("isolated map runtime lifecycle", () => {let starts = 0;const stop = startAVMapRuntime(port as unknown as MessagePort, "one", "openfreemap", {} as HTMLElement,async (_init, _container, value) => { starts++; callbacks = value; return adapter; });- await send({type: "init", provider: "amap", credentials: {}, theme: "light"});+ await send({type: "init", provider: "amap", theme: "light"});assert.equal(starts, 0);- await send({type: "init", provider: "openfreemap", credentials: {}, theme: "light"});- await send({type: "init", provider: "openfreemap", credentials: {}, theme: "dark"});+ await send({type: "init", provider: "openfreemap", theme: "light"});+ await send({type: "init", provider: "openfreemap", theme: "dark"});assert.equal(starts, 1);assert.deepEqual(replies, [{version: 1, instanceID: "one", type: "ready"}]);- const point = {id: "row-1", longitude: 0, latitude: 0, coordinateSystem: "wgs84"};+ const point = {id: "row-1", longitude: 0, latitude: 0};await send({type: "setPoints", revision: 2, points: [{...point, title: "private"},- {...point, id: "invalid", coordinateSystem: "unknown"}]});+ {...point, id: "invalid", latitude: 91}]});assert.deepEqual(calls.find((call) => call[0] === "setPoints"), ["setPoints", [point], 2]);assert.equal(calls.filter((call) => call[0] === "fit").length, 1);await send({type: "setPoints", revision: 1, points: []});@@ -66,7 +66,7 @@ describe("isolated map runtime lifecycle", () => {signal = value;return new Promise<AVMapAdapter>((resolve) => { finish = resolve; });});- const pending = send({type: "init", provider: "openfreemap", credentials: {}, theme: "light"});+ const pending = send({type: "init", provider: "openfreemap", theme: "light"});await send({type: "destroy"});assert.equal(signal.aborted, true);finish(adapter);@@ -75,34 +75,34 @@ describe("isolated map runtime lifecycle", () => {assert.equal(replies.length, 0);assert.equal(calls.filter((call) => call[0] === "destroy").length, 1);});- it("does not initialize a key-backed provider without its required credentials", async () => {- for (const provider of ["amap", "tencent", "baidu"] as const) {+ it("never initializes a removed provider", async () => {+ for (const provider of ["amap", "tencent", "baidu"]) {const {port, replies, send} = fixture();- startAVMapRuntime(port as unknown as MessagePort, "one", provider, {} as HTMLElement,+ startAVMapRuntime(port as unknown as MessagePort, "one", "openfreemap", {} as HTMLElement,async () => assert.fail("must not load an SDK"));- await send({type: "init", provider, credentials: {}, theme: "light"});- assert.deepEqual(replies, [{version: 1, instanceID: "one", type: "error", code: "missingCredentials"}]);+ await send({type: "init", provider, theme: "light"});+ assert.deepEqual(replies, []);}});it("returns only a stable code when SDK loading fails with a secret-bearing exception", async () => {const {port, replies, send} = fixture();startAVMapRuntime(port as unknown as MessagePort, "one", "openfreemap", {} as HTMLElement,async () => { throw new Error("https://sdk.invalid?key=secret"); });- await send({type: "init", provider: "openfreemap", credentials: {}, theme: "light"});+ await send({type: "init", provider: "openfreemap", theme: "light"});assert.deepEqual(replies, [{version: 1, instanceID: "one", type: "error", code: "sdkUnavailable"}]);});it("preserves only controlled loading stages without passing exception fields to the owner", async () => {- for (const code of ["sdkScriptLoadFailed", "sdkCallbackTimeout", "sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout"] as const) {+ for (const code of ["sdkScriptLoadFailed", "sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout"] as const) {const {port, replies, send} = fixture();- startAVMapRuntime(port as unknown as MessagePort, "one", "amap", {} as HTMLElement,+ startAVMapRuntime(port as unknown as MessagePort, "one", "openfreemap", {} as HTMLElement,async () => { throw Object.assign(new AVMapLoadError(code), {message: "https://sdk.invalid?key=secret"}); });- await send({type: "init", provider: "amap", credentials: {apiKey: "fixture-key", securityCode: "fixture-code"}, theme: "light"});+ await send({type: "init", provider: "openfreemap", theme: "light"});assert.deepEqual(replies, [{version: 1, instanceID: "one", type: "error", code}]);}const {port, replies, send} = fixture();startAVMapRuntime(port as unknown as MessagePort, "one", "openfreemap", {} as HTMLElement,async () => { throw Object.assign(new Error("https://sdk.invalid?key=secret"), {code: "mapCreationFailed"}); });- await send({type: "init", provider: "openfreemap", credentials: {}, theme: "light"});+ await send({type: "init", provider: "openfreemap", theme: "light"});assert.deepEqual(replies, [{version: 1, instanceID: "one", type: "error", code: "sdkUnavailable"}]);});it("does not report a provider rejection caused by teardown", async () => {@@ -111,7 +111,7 @@ describe("isolated map runtime lifecycle", () => {async (_init, _container, _callbacks, signal) => new Promise<AVMapAdapter>((_resolve, reject) => {signal.addEventListener("abort", () => reject(new AVMapLoadError("mapReadyTimeout")), {once: true});}));- const pending = send({type: "init", provider: "openfreemap", credentials: {}, theme: "light"});+ const pending = send({type: "init", provider: "openfreemap", theme: "light"});await send({type: "destroy"});await pending;assert.deepEqual(replies, []);@@ -127,12 +127,16 @@ describe("isolated map bootstrap ordering", () => {const parent = Object.defineProperty({postMessage: (message: unknown) => events.push(message)},"document", {get() { throw new Error("opaque sandbox"); }});const scope: any = {- origin: "null", location: {hash: `#${instanceID}:${nonce}`, search: "?provider=amap"},- parent, setTimeout, clearTimeout,+ origin: "null", location: {hash: `#${instanceID}:${nonce}`, search: "?provider=openfreemap"},+ parent, setTimeout, clearTimeout, maplibregl: {},+ fetch: async () => ({ok: true, text: async () => "worker"}),addEventListener: (name: string, callback: (event?: any) => void) => listeners.set(name, callback),removeEventListener: (name: string) => listeners.delete(name),- document: {createElement: (tag: string) => ({tag}),- head: {appendChild: (element: any) => events.push({type: "policy", content: element.content})},+ document: {createElement: (tag: string) => ({tag, remove() {}}),+ head: {appendChild: (element: any) => {+ if (element.tag === "meta") events.push({type: "policy", content: element.content});+ else queueMicrotask(() => element.onload?.());+ }},getElementById: () => ({})},};if (desktop) {@@ -183,7 +187,7 @@ describe("isolated map bootstrap ordering", () => {it("accepts a desktop preload port once and returns readiness only after the same CSP lock", async () => {const {events, listeners, port, message} = bootstrapFixture(true);const receive = listeners.get("message");- const valid = message("siyuan-map-desktop-connect", {provider: "amap"}, [port]);+ const valid = message("siyuan-map-desktop-connect", {provider: "openfreemap"}, [port]);receive({...valid, source: {}});receive({...valid, data: {...valid.data, provider: "baidu"}});receive({...valid, data: {...valid.data, nonce: "old"}});diff --git a/app/src/protyle/render/av/map/hostRuntime.ts b/app/src/protyle/render/av/map/hostRuntime.tsindex 3bae09f24b..7229b65c41 100644--- a/app/src/protyle/render/av/map/hostRuntime.ts+++ b/app/src/protyle/render/av/map/hostRuntime.ts@@ -74,11 +74,6 @@ export const startAVMapRuntime = (port: MessagePort, instanceID: string, providereturn;}initializing = true;- if (provider !== "openfreemap" && !command.credentials.apiKey ||- provider === "amap" && !command.credentials.securityCode) {- fail("missingCredentials");- return;- }const next = await factory(command, container, {onMarkerClick: (id, clickedRevision) => {if (clickedRevision === revision && ids.has(id)) {diff --git a/app/src/protyle/render/av/map/protocol.test.ts b/app/src/protyle/render/av/map/protocol.test.tsindex 6f92951e15..605232cf7d 100644--- a/app/src/protyle/render/av/map/protocol.test.ts+++ b/app/src/protyle/render/av/map/protocol.test.ts@@ -1,71 +1,59 @@import * as assert from "node:assert/strict";import {describe, it} from "node:test";import {- AV_MAP_ATTRIBUTION_LINKS, AV_MAP_MERCATOR_MAX_LATITUDE, AVMapLoadError, AVMapProvider, getAVMapLoadErrorCode,+ AV_MAP_ATTRIBUTION_LINKS, AV_MAP_MERCATOR_MAX_LATITUDE, AVMapLoadError, getAVMapLoadErrorCode,isAVMapHandshake, isAVMapHostErrorCode, isAVMapProjectionSupported,- parseAVMapCommand, parseAVMapReply, sanitizeAVMapCredentials, sanitizeAVMapPoints,+ parseAVMapCommand, parseAVMapReply, sanitizeAVMapPoints,} from "./protocol";describe("isolated map protocol", () => {- const point = {id: "row-1", longitude: 0, latitude: 0, coordinateSystem: "wgs84"};+ const point = {id: "row-1", longitude: 0, latitude: 0};it("keeps attribution destinations in a fixed official allowlist", () => {assert.deepEqual(AV_MAP_ATTRIBUTION_LINKS.openfreemap.map((link) => link.href), ["https://openfreemap.org", "https://www.openmaptiles.org/", "https://www.openstreetmap.org/copyright",]);- assert.deepEqual(Object.keys(AV_MAP_ATTRIBUTION_LINKS), ["openfreemap", "amap", "tencent", "baidu"]);+ assert.deepEqual(Object.keys(AV_MAP_ATTRIBUTION_LINKS), ["openfreemap"]);Object.values(AV_MAP_ATTRIBUTION_LINKS).flat().forEach((link) => {assert.equal(new URL(link.href).protocol, "https:");assert.equal(/[<>]/.test(link.label), false);});});- it("copies only identifiers and coordinates and drops unknown systems without conversion", () => {+ it("copies only identifiers and WGS84 coordinates", () => {const input = {...point, name: "Private place", title: "Private record", document: "secret", token: "secret",originalInput: "sensitive source"};- assert.deepEqual(sanitizeAVMapPoints([input], "openfreemap"), [point]);- const systems = {openfreemap: ["wgs84"], amap: ["gcj02"], tencent: ["gcj02"], baidu: ["bd09", "gcj02"]};- for (const provider of Object.keys(systems) as AVMapProvider[]) {- for (const system of ["wgs84", "gcj02", "bd09", "unknown", "", undefined]) {- const result = sanitizeAVMapPoints([{...point, coordinateSystem: system}], provider);- assert.equal(result.length, systems[provider].includes(system) ? 1 : 0, `${provider}:${system}`);- }+ assert.deepEqual(sanitizeAVMapPoints([input]), [point]);+ });+ it("rejects obsolete coordinate-system messages instead of reinterpreting their coordinates", () => {+ for (const coordinateSystem of ["wgs84", "gcj02", "bd09", "unknown", "", undefined]) {+ assert.deepEqual(sanitizeAVMapPoints([{...point, coordinateSystem}]), []);}});it("accepts zero and coordinate boundaries, rejects malformed numbers, ranges, ids and duplicates", () => {- assert.equal(sanitizeAVMapPoints([{...point, longitude: -180, latitude: -AV_MAP_MERCATOR_MAX_LATITUDE}], "openfreemap").length, 1);- assert.equal(sanitizeAVMapPoints([{...point, longitude: 180, latitude: AV_MAP_MERCATOR_MAX_LATITUDE}], "openfreemap").length, 1);+ assert.equal(sanitizeAVMapPoints([{...point, longitude: -180, latitude: -AV_MAP_MERCATOR_MAX_LATITUDE}]).length, 1);+ assert.equal(sanitizeAVMapPoints([{...point, longitude: 180, latitude: AV_MAP_MERCATOR_MAX_LATITUDE}]).length, 1);for (const invalid of [{longitude: 181}, {latitude: -91}, {longitude: NaN}, {latitude: Infinity},{latitude: "0"}, {longitude: null}, {id: ""}, {id: "<script>"}, {id: "x".repeat(129)}]) {- assert.deepEqual(sanitizeAVMapPoints([{...point, ...invalid}], "openfreemap"), []);+ assert.deepEqual(sanitizeAVMapPoints([{...point, ...invalid}]), []);}- assert.deepEqual(sanitizeAVMapPoints([point, point, null, 1], "openfreemap"), [point]);+ assert.deepEqual(sanitizeAVMapPoints([point, point, null, 1]), [point]);});it("preserves polar coordinates but refuses Web Mercator points that would be silently clamped", () => {- for (const provider of ["openfreemap", "amap"] as const) {- const base = {...point, coordinateSystem: provider === "amap" ? "gcj02" : "wgs84"};- for (const latitude of [-90, 90, -85.052, 85.052, -Infinity, Infinity, NaN]) {- assert.equal(isAVMapProjectionSupported(provider, latitude), false);- const input = {...base, latitude};- assert.deepEqual(sanitizeAVMapPoints([input], provider), []);- assert.equal(Object.is(input.latitude, latitude), true);- }- for (const latitude of [0, -AV_MAP_MERCATOR_MAX_LATITUDE, AV_MAP_MERCATOR_MAX_LATITUDE]) {- assert.equal(isAVMapProjectionSupported(provider, latitude), true);- assert.deepEqual(sanitizeAVMapPoints([{...base, latitude}], provider), [{...base, latitude}]);- }+ for (const latitude of [-90, 90, -85.052, 85.052, -Infinity, Infinity, NaN]) {+ assert.equal(isAVMapProjectionSupported(latitude), false);+ const input = {...point, latitude};+ assert.deepEqual(sanitizeAVMapPoints([input]), []);+ assert.equal(Object.is(input.latitude, latitude), true);}- });- it("limits credentials to explicit bounded strings", () => {- assert.deepEqual(sanitizeAVMapCredentials({apiKey: "fixture-key", securityCode: "fixture-code", token: "private"}),- {apiKey: "fixture-key", securityCode: "fixture-code"});- assert.deepEqual(sanitizeAVMapCredentials({apiKey: "fixture-key", securityCode: "fixture-code"}, "openfreemap"), {});- for (const provider of ["tencent", "baidu"] as const) {- assert.deepEqual(sanitizeAVMapCredentials({apiKey: "fixture-key", securityCode: "fixture-code"}, provider),- {apiKey: "fixture-key"});+ for (const latitude of [0, -AV_MAP_MERCATOR_MAX_LATITUDE, AV_MAP_MERCATOR_MAX_LATITUDE]) {+ assert.equal(isAVMapProjectionSupported(latitude), true);+ assert.deepEqual(sanitizeAVMapPoints([{...point, latitude}]), [{...point, latitude}]);}- assert.deepEqual(sanitizeAVMapCredentials({apiKey: " fixture-key "}), {apiKey: "fixture-key"});- assert.deepEqual(sanitizeAVMapCredentials({apiKey: "x".repeat(4096)}), {apiKey: "x".repeat(4096)});- for (const apiKey of ["", "x".repeat(4097), " ", "\n", "\u4e00".repeat(1366), null, 42]) {- assert.deepEqual(sanitizeAVMapCredentials({apiKey}), {});+ });+ it("accepts only the built-in provider and strips credentials and extra init fields", () => {+ const init = {version: 1, instanceID: "one", type: "init", provider: "openfreemap", theme: "light"};+ assert.deepEqual(parseAVMapCommand({...init, credentials: {apiKey: "secret"}, token: "private"}, "one"), init);+ for (const provider of ["amap", "tencent", "baidu", "", undefined]) {+ assert.equal(parseAVMapCommand({...init, provider}, "one"), undefined);}});it("rejects wrong instances, versions, commands and invalid revisions", () => {@@ -93,7 +81,7 @@ describe("isolated map protocol", () => {}});it("admits only fixed loading stages and never treats arbitrary SDK exceptions as controlled errors", () => {- for (const code of ["sdkScriptLoadFailed", "sdkCallbackTimeout", "sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout"] as const) {+ for (const code of ["sdkScriptLoadFailed", "sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout"] as const) {const error = new AVMapLoadError(code);assert.equal(getAVMapLoadErrorCode(error), code);assert.equal(error.message, "Map loading failed");diff --git a/app/src/protyle/render/av/map/protocol.ts b/app/src/protyle/render/av/map/protocol.tsindex 22197452ce..61bc2ad26c 100644--- a/app/src/protyle/render/av/map/protocol.ts+++ b/app/src/protyle/render/av/map/protocol.ts@@ -2,17 +2,16 @@ export const AV_MAP_PROTOCOL_VERSION = 1;export const AV_MAP_MAX_POINTS = 10000;export const AV_MAP_MERCATOR_MAX_LATITUDE = 85.0511287798066;-export type AVMapProvider = "openfreemap" | "amap" | "tencent" | "baidu";+export type AVMapProvider = "openfreemap";export type AVMapTheme = "light" | "dark";-export type AVMapCoordinateSystem = "wgs84" | "gcj02" | "bd09";-export type AVMapLoadErrorCode = "sdkScriptLoadFailed" | "sdkCallbackTimeout" | "sdkGlobalMissing" |+export type AVMapLoadErrorCode = "sdkScriptLoadFailed" | "sdkGlobalMissing" |"mapCreationFailed" | "mapReadyTimeout";export type AVMapHostErrorCode = "hostLimitReached" | "hostSetupFailed" | "hostAttachFailed" |"hostDocumentLoadFailed" | "hostDocumentLoadTimeout" | "hostDocumentReloaded" | "hostDocumentMismatch" |"hostRendererGone" | "hostDestroyed" | "hostPortSetupFailed" | "hostPortClosed" | "hostBootstrapFailed" |"hostBootstrapTimeout" | "hostSDKTimeout" | "hostOperationFailed" | "hostCreateRejected" |"hostCreateInvalidResponse" | "hostReadyTimeout" | "hostOwnerSetupFailed";-export type AVMapErrorCode = "unsupportedEnvironment" | "missingCredentials" | "invalidConfiguration" |+export type AVMapErrorCode = "unsupportedEnvironment" | "invalidConfiguration" |"hostUnavailable" | "sdkUnavailable" | "mapUnavailable" | AVMapLoadErrorCode | AVMapHostErrorCode;const mapHostErrorCodes = new Set<AVMapHostErrorCode>([@@ -25,7 +24,7 @@ export const isAVMapHostErrorCode = (value: unknown): value is AVMapHostErrorCodtypeof value === "string" && mapHostErrorCodes.has(value as AVMapHostErrorCode);const mapLoadErrorCodes = new Set<AVMapLoadErrorCode>([- "sdkScriptLoadFailed", "sdkCallbackTimeout", "sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout",+ "sdkScriptLoadFailed", "sdkGlobalMissing", "mapCreationFailed", "mapReadyTimeout",]);const isAVMapLoadErrorCode = (value: unknown): value is AVMapLoadErrorCode =>typeof value === "string" && mapLoadErrorCodes.has(value as AVMapLoadErrorCode);@@ -47,21 +46,12 @@ export const AV_MAP_ATTRIBUTION_LINKS: Readonly<Record<AVMapProvider, ReadonlyAr{label: "© OpenMapTiles", href: "https://www.openmaptiles.org/"},{label: "© OpenStreetMap", href: "https://www.openstreetmap.org/copyright"},],- amap: [{label: "AMap", href: "https://lbs.amap.com/"}],- tencent: [{label: "Tencent Maps", href: "https://lbs.qq.com/"}],- baidu: [{label: "Baidu Maps", href: "https://lbs.baidu.com/"}],};-export interface AVMapCredentials {- apiKey?: string;- securityCode?: string;-}-export interface AVMapPoint {id: string;longitude: number;latitude: number;- coordinateSystem: AVMapCoordinateSystem;}interface AVMapEnvelope {@@ -72,7 +62,6 @@ interface AVMapEnvelope {export interface AVMapInit extends AVMapEnvelope {type: "init";provider: AVMapProvider;- credentials: AVMapCredentials;theme: AVMapTheme;}@@ -86,7 +75,7 @@ export type AVMapReply = (AVMapEnvelope & {type: "ready"}) |(AVMapEnvelope & {type: "error"; code: AVMapErrorCode});export const isAVMapProvider = (value: unknown): value is AVMapProvider =>- value === "openfreemap" || value === "amap" || value === "tencent" || value === "baidu";+ value === "openfreemap";export const isAVMapTheme = (value: unknown): value is AVMapTheme => value === "light" || value === "dark";@@ -96,40 +85,27 @@ export const isAVMapIdentifier = (value: unknown): value is string =>export const isAVMapRevision = (value: unknown): value is number =>typeof value === "number" && Number.isSafeInteger(value) && value >= 0;-export const supportsAVMapCoordinateSystem = (provider: AVMapProvider, system: unknown): boolean => {- if (provider === "openfreemap") {- return system === "wgs84";- }- if (provider === "baidu") {- return system === "bd09" || system === "gcj02";- }- return (provider === "amap" || provider === "tencent") && system === "gcj02";-};--export const isAVMapProjectionSupported = (provider: AVMapProvider, latitude: number): boolean =>- Number.isFinite(latitude) && ((provider !== "openfreemap" && provider !== "amap") ||- Math.abs(latitude) <= AV_MAP_MERCATOR_MAX_LATITUDE);+export const isAVMapProjectionSupported = (latitude: number): boolean =>+ Number.isFinite(latitude) && Math.abs(latitude) <= AV_MAP_MERCATOR_MAX_LATITUDE;// 主界面和隔离宿主分别调用白名单复制,不传输名称、原始输入或完整记录。-export const sanitizeAVMapPoints = (input: unknown, provider: AVMapProvider): AVMapPoint[] => {+export const sanitizeAVMapPoints = (input: unknown): AVMapPoint[] => {if (!Array.isArray(input)) {return [];}const ids = new Set<string>();const result: AVMapPoint[] = [];input.slice(0, AV_MAP_MAX_POINTS).forEach((point) => {- if (!point || typeof point !== "object" || !isAVMapIdentifier(point.id) || ids.has(point.id) ||+ if (!point || typeof point !== "object" || "coordinateSystem" in point || !isAVMapIdentifier(point.id) || ids.has(point.id) ||typeof point.longitude !== "number" || !Number.isFinite(point.longitude) ||point.longitude < -180 || point.longitude > 180 ||typeof point.latitude !== "number" || !Number.isFinite(point.latitude) ||point.latitude < -90 || point.latitude > 90 ||- !isAVMapProjectionSupported(provider, point.latitude) ||- !supportsAVMapCoordinateSystem(provider, point.coordinateSystem)) {+ !isAVMapProjectionSupported(point.latitude)) {return;}ids.add(point.id);- result.push({id: point.id, longitude: point.longitude, latitude: point.latitude,- coordinateSystem: point.coordinateSystem});+ result.push({id: point.id, longitude: point.longitude, latitude: point.latitude});});return result;};@@ -137,24 +113,6 @@ export const sanitizeAVMapPoints = (input: unknown, provider: AVMapProvider): AVconst asRecord = (value: unknown): Record<string, unknown> | undefined =>value && typeof value === "object" && !Array.isArray(value) ? value as Record<string, unknown> : undefined;-export const sanitizeAVMapCredentials = (value: unknown, provider?: AVMapProvider): AVMapCredentials => {- const input = asRecord(value);- const result: AVMapCredentials = {};- if (provider === "openfreemap") {- return result;- }- for (const key of ["apiKey", "securityCode"] as const) {- if (key === "securityCode" && provider && provider !== "amap") {- continue;- }- const text = typeof input?.[key] === "string" ? (input[key] as string).trim() : "";- if (text.length > 0 && new TextEncoder().encode(text).length <= 4096) {- result[key] = text;- }- }- return result;-};-export const parseAVMapCommand = (value: unknown, instanceID: string, provider?: AVMapProvider): AVMapCommand | undefined => {const input = asRecord(value);if (!input || input.version !== AV_MAP_PROTOCOL_VERSION || input.instanceID !== instanceID) {@@ -166,14 +124,13 @@ export const parseAVMapCommand = (value: unknown, instanceID: string, provider?:if (!isAVMapProvider(input.provider) || !isAVMapTheme(input.theme)) {return;}- return {...envelope, type: "init", provider: input.provider,- credentials: sanitizeAVMapCredentials(input.credentials, input.provider), theme: input.theme};+ return {...envelope, type: "init", provider: input.provider, theme: input.theme};case "setPoints":if (!provider || !isAVMapRevision(input.revision) || !Array.isArray(input.points)) {return;}return {...envelope, type: "setPoints", revision: input.revision,- points: sanitizeAVMapPoints(input.points, provider)};+ points: sanitizeAVMapPoints(input.points)};case "theme":return isAVMapTheme(input.theme) ? {...envelope, type: "theme", theme: input.theme} : undefined;case "fit":@@ -195,7 +152,7 @@ export const parseAVMapReply = (value: unknown, instanceID: string): AVMapReplyif (input.type === "markerClick" && isAVMapIdentifier(input.id) && isAVMapRevision(input.revision)) {return {...envelope, type: "markerClick", id: input.id, revision: input.revision};}- if (input.type === "error" && (["unsupportedEnvironment", "missingCredentials", "invalidConfiguration",+ if (input.type === "error" && (["unsupportedEnvironment", "invalidConfiguration","hostUnavailable", "sdkUnavailable", "mapUnavailable"].includes(input.code as string) ||isAVMapLoadErrorCode(input.code) || isAVMapHostErrorCode(input.code))) {return {...envelope, type: "error", code: input.code as AVMapErrorCode};diff --git a/app/src/protyle/render/av/map/providers.test.ts b/app/src/protyle/render/av/map/providers.test.tsindex 51c5d9b32f..df44c11a7a 100644--- a/app/src/protyle/render/av/map/providers.test.ts+++ b/app/src/protyle/render/av/map/providers.test.ts@@ -1,6 +1,5 @@import * as assert from "node:assert/strict";-import {describe, it} from "node:test";-import {AVMapProvider} from "./protocol";+import {test} from "node:test";import {AV_MAP_OPENFREEMAP_STYLE, createAVMapAdapter} from "./providers";const fixture = () => {@@ -8,132 +7,67 @@ const fixture = () => {const calls: Array<[string, ...any[]]> = [];class SDKObject {callbacks = new Map<string, (...args: any[]) => void>();- constructor(...args: any[]) {- calls.push([new.target.name, ...args]);- instances.push(this);- }+ constructor(...args: any[]) { calls.push([new.target.name, ...args]); instances.push(this); }on(event: string, callback: (...args: any[]) => void) { this.callbacks.set(event, callback); }off(event: string) { this.callbacks.delete(event); }addEventListener(event: string, callback: (...args: any[]) => void) { this.on(event, callback); }removeEventListener(event: string) { this.off(event); }remove() { calls.push(["remove"]); }- destroy() { calls.push(["destroy"]); }- dispose() { calls.push(["dispose"]); }- setMap(...args: any[]) { calls.push(["setMap", ...args]); }setLngLat(...args: any[]) { calls.push(["setLngLat", ...args]); return this; }addTo() { return this; }getElement() { return this; }- setGeometries(...args: any[]) { calls.push(["setGeometries", ...args]); }fitBounds(...args: any[]) { calls.push(["fitBounds", ...args]); }- setFitView(...args: any[]) { calls.push(["setFitView", ...args]); }- setViewport(...args: any[]) { calls.push(["setViewport", ...args]); }- setMapStyle(...args: any[]) { calls.push(["setMapStyle", ...args]); }- setTheme(...args: any[]) { calls.push(["setTheme", ...args]); }- centerAndZoom(...args: any[]) { calls.push(["centerAndZoom", ...args]); }- enableScrollWheelZoom() {}- disableMapClick() {}- disableIconInfoWindow() {}- addOverlay() {}- removeOverlay() {}- clearOverlays() {}- getPosition() { return "sdk-position"; }resize() { calls.push(["resize"]); }- checkResize() { calls.push(["checkResize"]); }extend(...args: any[]) { calls.push(["extend", ...args]); }}- const sdk = {- Map: class Map extends SDKObject {}, Marker: class Marker extends SDKObject {},- MarkerStyle: class MarkerStyle extends SDKObject {},- MultiMarker: class MultiMarker extends SDKObject {}, LatLng: class LatLng extends SDKObject {},- Point: class Point extends SDKObject {}, LngLatBounds: class LngLatBounds extends SDKObject {},- LatLngBounds: class LatLngBounds extends SDKObject {},- };+ const sdk = {Map: class Map extends SDKObject {}, Marker: class Marker extends SDKObject {},+ LngLatBounds: class LngLatBounds extends SDKObject {}};const container = {ownerDocument: {documentElement: {dataset: {}}}, replaceChildren() { calls.push(["clear"]); }};return {sdk, calls, instances, container: container as unknown as HTMLElement};};-describe("official map provider adapters", () => {- for (const provider of ["openfreemap", "amap", "tencent", "baidu"] as AVMapProvider[]) {- it(`${provider} preserves coordinate order, filters systems and cleans stale callbacks`, () => {- const {sdk, calls, instances, container} = fixture();- const clicked: Array<[string, number]> = [];- const adapter = createAVMapAdapter(provider, sdk, container, {- onMarkerClick: (id, revision) => clicked.push([id, revision]), onError: () => assert.fail("SDK error"),- }, {bd09: "official-bd09", gcj02: "official-gcj02"});- const coordinateSystem = provider === "openfreemap" ? "wgs84" : provider === "baidu" ? "bd09" : "gcj02";- const point = {id: "row-1", longitude: 121, latitude: 31, coordinateSystem} as const;- adapter.setPoints([point, {...point, id: "unknown", coordinateSystem: "unknown" as any}], 1);- const marker = instances.find((instance) => instance.callbacks.has("click"));- const oldClick = marker.callbacks.get("click");- oldClick({geometry: {id: "row-1"}});- assert.deepEqual(clicked, [["row-1", 1]]);- if (provider === "openfreemap") {- assert.equal(calls.find((call) => call[0] === "Map")[1].style, AV_MAP_OPENFREEMAP_STYLE);- assert.equal(calls.find((call) => call[0] === "Map")[1].attributionControl, true);- assert.deepEqual(calls.find((call) => call[0] === "setLngLat"), ["setLngLat", [121, 31]]);- } else if (provider === "amap") {- assert.deepEqual(calls.find((call) => call[0] === "Marker")[1].position, [121, 31]);- } else if (provider === "tencent") {- assert.ok(calls.some((call) => call[0] === "LatLng" && call[1] === 31 && call[2] === 121));- assert.deepEqual(calls.find((call) => call[0] === "MarkerStyle")[1],- {width: 20, height: 30, anchor: {x: 10, y: 30}});- } else {- assert.ok(calls.some((call) => call[0] === "Point" && call[1] === 121 && call[2] === 31));- assert.deepEqual(calls.find((call) => call[0] === "Marker")[2],- {enableDragging: false, coordType: "official-bd09"});- }- adapter.fit();- adapter.resize();- adapter.setTheme("dark");- adapter.setPoints([{...point, id: "row-2"}], 2);- oldClick({geometry: {id: "row-1"}});- assert.equal(clicked.length, 1);- adapter.setPoints([point], 1);- adapter.setPoints([], 3);- adapter.fit();- adapter.destroy();- const count = calls.length;- adapter.destroy();- adapter.setPoints([point], 4);- adapter.fit();- adapter.resize();- adapter.setTheme("light");- oldClick({geometry: {id: "row-1"}});- assert.equal(calls.length, count);- assert.equal(clicked.length, 1);- assert.equal(calls.filter((call) => call[0] === "clear").length, 1);- });- }- it("declares each Baidu marker's BD09 or GCJ02 system without changing global defaults or coordinates", () => {- const {sdk, calls, container} = fixture();- Object.defineProperty(sdk, "coordType", {value: "global-default", writable: false});- const adapter = createAVMapAdapter("baidu", sdk, container, {onMarkerClick() {}, onError() {}},- {bd09: "official-bd09", gcj02: "official-gcj02"});- const points = [- {id: "one", longitude: 121, latitude: 31, coordinateSystem: "gcj02" as const},- {id: "abroad", longitude: -73, latitude: 40, coordinateSystem: "bd09" as const},- ];- adapter.setPoints(points, 1);- assert.deepEqual(calls.filter((call) => call[0] === "Marker").map((call) => call[2]), [- {enableDragging: false, coordType: "official-gcj02"},- {enableDragging: false, coordType: "official-bd09"},- ]);- assert.ok(calls.some((call) => call[0] === "Point" && call[1] === -73 && call[2] === 40));- assert.deepEqual(points[1], {id: "abroad", longitude: -73, latitude: 40, coordinateSystem: "bd09"});- adapter.fit();- assert.deepEqual(calls.find((call) => call[0] === "setViewport")[1], ["sdk-position", "sdk-position"]);- adapter.destroy();- });- it("does not silently fall back to Baidu defaults when an explicit coordinate constant is unavailable", () => {- for (const coordinateSystem of ["bd09", "gcj02"] as const) {- const {sdk, calls, container} = fixture();- const errors: string[] = [];- const adapter = createAVMapAdapter("baidu", sdk, container,- {onMarkerClick() {}, onError: (code) => errors.push(code)});- adapter.setPoints([{id: "one", longitude: 121, latitude: 31, coordinateSystem}], 1);- assert.deepEqual(errors, ["mapUnavailable"]);- assert.equal(calls.some((call) => call[0] === "Marker"), false);- adapter.destroy();- }+test("OpenFreeMap preserves longitude/latitude, attribution and cleans stale callbacks", () => {+ const {sdk, calls, instances, container} = fixture();+ const clicked: Array<[string, number]> = [];+ const adapter = createAVMapAdapter("openfreemap", sdk, container, {+ onMarkerClick: (id, revision) => clicked.push([id, revision]), onError: () => assert.fail("SDK error"),});+ const point = {id: "row-1", longitude: 121, latitude: 31};+ adapter.setPoints([point, {...point, id: "invalid", latitude: 90}], 1);+ const marker = instances.find(instance => instance.callbacks.has("click"));+ const oldClick = marker.callbacks.get("click");+ oldClick();+ assert.deepEqual(clicked, [["row-1", 1]]);+ assert.equal(calls.find(call => call[0] === "Map")[1].style, AV_MAP_OPENFREEMAP_STYLE);+ assert.equal(calls.find(call => call[0] === "Map")[1].attributionControl, true);+ assert.deepEqual(calls.filter(call => call[0] === "setLngLat"), [["setLngLat", [121, 31]]]);+ adapter.fit();+ adapter.resize();+ adapter.setTheme("dark");+ adapter.setPoints([{...point, id: "row-2"}], 2);+ oldClick();+ assert.equal(clicked.length, 1);+ adapter.setPoints([point], 1);+ adapter.setPoints([], 3);+ adapter.fit();+ adapter.destroy();+ const count = calls.length;+ adapter.destroy();+ adapter.setPoints([point], 4);+ adapter.fit();+ adapter.resize();+ adapter.setTheme("light");+ oldClick();+ assert.equal(calls.length, count);+ assert.equal(clicked.length, 1);+ assert.equal(calls.filter(call => call[0] === "clear").length, 1);+});++test("removed providers cannot create a map", () => {+ for (const provider of ["amap", "tencent", "baidu"]) {+ const {sdk, calls, container} = fixture();+ assert.throws(() => createAVMapAdapter(provider as any, sdk, container, {onMarkerClick() {}, onError() {}}),+ /invalidConfiguration/);+ assert.equal(calls.length, 0);+ }});diff --git a/app/src/protyle/render/av/map/providers.ts b/app/src/protyle/render/av/map/providers.tsindex 24dfd5cca1..87feb2cc59 100644--- a/app/src/protyle/render/av/map/providers.ts+++ b/app/src/protyle/render/av/map/providers.ts@@ -16,199 +16,71 @@ export interface AVMapAdapterCallbacks {onReady?: () => void;}-// SDK 仅由独立 web 入口加载,主界面不得导入此模块或任何外部 SDK。+// The SDK is loaded only in the isolated web entry, never in the main interface.export const createAVMapAdapter = (provider: AVMapProvider, sdk: any, container: HTMLElement,- callbacks: AVMapAdapterCallbacks,- baiduCoordinateTypes?: {bd09?: unknown; gcj02?: unknown}): AVMapAdapter => {+ callbacks: AVMapAdapterCallbacks): AVMapAdapter => {+ if (provider !== "openfreemap") throw new Error("invalidConfiguration");let destroyed = false;let revision = -1;let points: AVMapPoint[] = [];let removeMarkers: Array<() => void> = [];- let map: any;- let tencentLayer: any;- let markers: any[] = [];- let removeReadyListener = () => {};const cleanMarkers = () => {- removeMarkers.forEach((remove) => remove());+ removeMarkers.forEach(remove => remove());removeMarkers = [];- markers = [];- tencentLayer?.setGeometries([]);};const error = () => {- if (!destroyed) {- callbacks.onError("mapUnavailable");- }+ if (!destroyed) callbacks.onError("mapUnavailable");};- const click = (id: string, renderedRevision: number) => {- if (!destroyed && renderedRevision === revision && points.some((point) => point.id === id)) {- callbacks.onMarkerClick(id, renderedRevision);- }- };- if (provider === "openfreemap") {- map = new sdk.Map({container, style: AV_MAP_OPENFREEMAP_STYLE, center: [0, 0], zoom: 1,- attributionControl: true, trackResize: false});- map.on("error", error);- } else if (provider === "amap") {- map = new sdk.Map(container, {zoom: 3, center: [105, 35], resizeEnable: false,- viewMode: "2D", showIndoorMap: false});- map.on("error", error);- } else if (provider === "tencent") {- map = new sdk.Map(container, {center: new sdk.LatLng(35, 105), zoom: 3, pitch: 0, rotation: 0});- tencentLayer = new sdk.MultiMarker({map, geometries: [],- styles: {marker: new sdk.MarkerStyle({width: 20, height: 30, anchor: {x: 10, y: 30}})}});- } else if (provider === "baidu") {- map = new sdk.Map(container);- map.centerAndZoom(new sdk.Point(105, 35), 3);- map.enableScrollWheelZoom();- map.disableMapClick();- map.disableIconInfoWindow();- } else {- throw new Error("invalidConfiguration");- }+ const map = new sdk.Map({container, style: AV_MAP_OPENFREEMAP_STYLE, center: [0, 0], zoom: 1,+ attributionControl: true, trackResize: false});const onReady = () => {- if (!destroyed) {- callbacks.onReady?.();- }+ if (!destroyed) callbacks.onReady?.();};- const readyEvent = provider === "openfreemap" ? "load" : provider === "amap" ? "complete" : "tilesloaded";- if (provider === "baidu") {- map.addEventListener(readyEvent, onReady);- removeReadyListener = () => map.removeEventListener(readyEvent, onReady);- } else {- map.on(readyEvent, onReady);- removeReadyListener = () => map.off(readyEvent, onReady);- }+ map.on("error", error);+ map.on("load", onReady);- const adapter: AVMapAdapter = {+ return {setPoints: (input, nextRevision) => {- if (destroyed || nextRevision <= revision) {- return;- }+ if (destroyed || nextRevision <= revision) return;revision = nextRevision;cleanMarkers();- points = sanitizeAVMapPoints(input, provider);- if (provider === "tencent") {- // 经纬度顺序由腾讯的 LatLng 定义为纬度在前。- tencentLayer.setGeometries(points.map((point) => ({- id: point.id, position: new sdk.LatLng(point.latitude, point.longitude),- })));- const onClick = (event: {geometry?: {id?: unknown}}) => {- if (typeof event.geometry?.id === "string") {- click(event.geometry.id, nextRevision);+ points = sanitizeAVMapPoints(input);+ points.forEach(point => {+ const onClick = () => {+ if (!destroyed && nextRevision === revision && points.some(item => item.id === point.id)) {+ callbacks.onMarkerClick(point.id, nextRevision);}};- tencentLayer.on("click", onClick);- removeMarkers.push(() => tencentLayer.off("click", onClick));- return;- }- points.forEach((point) => {- const onClick = () => click(point.id, nextRevision);- if (provider === "openfreemap") {- const marker = new sdk.Marker().setLngLat([point.longitude, point.latitude]).addTo(map);- const element = marker.getElement();- element.addEventListener("click", onClick);- markers.push(marker);- removeMarkers.push(() => {- element.removeEventListener("click", onClick);- marker.remove();- });- } else if (provider === "amap") {- const marker = new sdk.Marker({map, position: [point.longitude, point.latitude], draggable: false});- marker.on("click", onClick);- markers.push(marker);- removeMarkers.push(() => {- marker.off("click", onClick);- marker.setMap(null);- });- } else {- const coordType = point.coordinateSystem === "gcj02" ?- baiduCoordinateTypes?.gcj02 : baiduCoordinateTypes?.bd09;- if (coordType === undefined) {- error();- return;- }- // 每个 Marker 显式声明坐标系,不依赖全局或地域默认值;不自行换算。- // https://lbs.baidu.com/jsapi/refdoc/v4/enums/BMap.CoordType.html- const options = {enableDragging: false, coordType};- const marker = new sdk.Marker(new sdk.Point(point.longitude, point.latitude), options);- map.addOverlay(marker);- marker.addEventListener("click", onClick);- markers.push(marker);- removeMarkers.push(() => {- marker.removeEventListener("click", onClick);- map.removeOverlay(marker);- marker.dispose?.();- });- }+ const marker = new sdk.Marker().setLngLat([point.longitude, point.latitude]).addTo(map);+ const element = marker.getElement();+ element.addEventListener("click", onClick);+ removeMarkers.push(() => {+ element.removeEventListener("click", onClick);+ marker.remove();+ });});},fit: () => {- if (destroyed || points.length === 0) {- return;- }- if (provider === "openfreemap") {- const bounds = new sdk.LngLatBounds();- points.forEach((point) => bounds.extend([point.longitude, point.latitude]));- map.fitBounds(bounds, {padding: 40, maxZoom: 15, duration: 0});- } else if (provider === "amap") {- map.setFitView(markers, true, [40, 40, 40, 40], 15);- } else if (provider === "tencent") {- const first = new sdk.LatLng(points[0].latitude, points[0].longitude);- const bounds = new sdk.LatLngBounds(first, first);- points.forEach((point) => bounds.extend(new sdk.LatLng(point.latitude, point.longitude)));- map.fitBounds(bounds, {padding: 40, maxZoom: 15, ease: {duration: 0}});- } else {- // SDK 返回实际标注位置,混合输入坐标系不会被应用自行重新解释。- map.setViewport(markers.map((marker) => marker.getPosition()),- {margins: [40, 40, 40, 40], enableAnimation: false});- }+ if (destroyed || points.length === 0) return;+ const bounds = new sdk.LngLatBounds();+ points.forEach(point => bounds.extend([point.longitude, point.latitude]));+ map.fitBounds(bounds, {padding: 40, maxZoom: 15, duration: 0});},resize: () => {- if (destroyed) {- return;- }- if (provider === "openfreemap" || provider === "amap") {- map.resize();- } else if (provider === "baidu") {- map.checkResize();- }- // 腾讯 SDK 自动响应容器尺寸变化,没有公开的 resize 方法。+ if (!destroyed) map.resize();},- setTheme: (theme) => {- if (destroyed) {- return;- }- container.ownerDocument.documentElement.dataset.theme = theme;- if (provider === "amap") {- map.setMapStyle(`amap://styles/${theme === "dark" ? "dark" : "normal"}`);- } else if (provider === "baidu") {- // 官方 4.0 的 setTheme 仅设置控件界面主题,底图仍使用服务默认样式。- map.setTheme(theme);- }+ setTheme: theme => {+ if (!destroyed) container.ownerDocument.documentElement.dataset.theme = theme;},destroy: () => {- if (destroyed) {- return;- }+ if (destroyed) return;destroyed = true;- removeReadyListener();+ map.off("load", onReady);cleanMarkers();points = [];- if (provider === "openfreemap") {- map.off("error", error);- map.remove();- } else if (provider === "amap") {- map.off("error", error);- map.destroy();- } else if (provider === "tencent") {- tencentLayer.setMap(null);- map.destroy();- } else {- map.clearOverlays();- map.destroy();- }+ map.off("error", error);+ map.remove();container.replaceChildren();},};- return adapter;};diff --git a/app/src/protyle/render/av/map/providersLoader.test.ts b/app/src/protyle/render/av/map/providersLoader.test.tsindex 0f49bf5a83..7671b34739 100644--- a/app/src/protyle/render/av/map/providersLoader.test.ts+++ b/app/src/protyle/render/av/map/providersLoader.test.ts@@ -1,49 +1,26 @@import * as assert from "node:assert/strict";-import {describe, it} from "node:test";-import {AVMapInit, AVMapLoadError, AVMapLoadErrorCode, AVMapProvider} from "./protocol";+import {test} from "node:test";+import {AVMapInit, AVMapLoadError} from "./protocol";import {loadAVMapAdapter} from "./providersLoader";import {getAVMapLockedPolicy, prepareAVMapBootstrap} from "./bootstrap";-const fixture = (ready = true, scriptError = false,- options: {skipCallback?: boolean; missingSDK?: boolean; mapError?: boolean; appendError?: boolean} = {}) => {+const fixture = (options: {ready?: boolean; assetFailure?: boolean; missingSDK?: boolean; mapError?: boolean} = {}) => {const requested: any[] = [];let destroyed = 0;class FakeMap {constructor() {requested.push({mapCreated: true});- if (options.mapError) {- throw new Error("https://fixture.invalid?key=private");- }+ if (options.mapError) throw new Error("private error");}on(type: string, callback: () => void) {- if (ready && ["load", "complete", "tilesloaded"].includes(type)) {- queueMicrotask(callback);- }+ if (options.ready !== false && type === "load") queueMicrotask(callback);}off() {}- addEventListener(type: string, callback: () => void) { this.on(type, callback); }- removeEventListener() {}remove() { destroyed++; }- destroy() { destroyed++; }- centerAndZoom() {}- enableScrollWheelZoom() {}- disableMapClick() {}- disableIconInfoWindow() {}- addOverlay() {}- removeOverlay() {}- clearOverlays() {}}- const sdk = {Map: FakeMap, MultiMarker: class {- setGeometries() {}- setMap() {}- }, Marker: class {- constructor(_point: unknown, options: unknown) { requested.push({markerOptions: options}); }- addEventListener() {}- removeEventListener() {}- }, MarkerStyle: class {}, LatLng: class {}, Point: class {}, setWorkerUrl: (url: string) => requested.push({worker: url})};const scope: any = {- setTimeout, clearTimeout, maplibregl: sdk,- BMAP_COORD_BD09: "official-bd09", BMAP_COORD_GCJ02: "official-gcj02",+ setTimeout, clearTimeout,+ maplibregl: options.missingSDK ? undefined : {Map: FakeMap, setWorkerUrl: (url: string) => requested.push({worker: url})},fetch: async (url: string, options: unknown) => {requested.push({url, options});return {ok: true, text: async () => "/* fixture worker */"};@@ -55,223 +32,105 @@ const fixture = (ready = true, scriptError = false,head: {appendChild: (element: any) => {requested.push({tag: element.tag, src: element.src, href: element.href, referrerPolicy: element.referrerPolicy,policy: element.content});- if (element.tag === "link") {- queueMicrotask(() => element.onload?.());- }- if (element.tag === "script") {- if (options.appendError) {- throw new Error("https://fixture.invalid?key=private");- }- queueMicrotask(() => {- if (scriptError) {- element.onerror?.(new Error("https://fixture.invalid?key=private"));- return;- }- const url = new URL(element.src, "https://fixture.invalid");- const callback = url.searchParams.get("callback");- if (callback) {- if (!options.skipCallback) {- if (!options.missingSDK) {- scope[{"webapi.amap.com": "AMap", "map.qq.com": "TMap", "api.map.baidu.com": "BMap"}[url.hostname]] = sdk;- }- scope[callback]?.();- }- } else {- element.onload?.();- }- });- }+ if (element.tag !== "meta") queueMicrotask(() => options.assetFailure ? element.onerror?.() : element.onload?.());}},};scope.document = document;const container = {ownerDocument: document, replaceChildren() {}} as unknown as HTMLElement;return {scope, requested, container, destroyed: () => destroyed};};+const init: AVMapInit = {version: 1, instanceID: "fixture", type: "init", provider: "openfreemap", theme: "light"};+const callbacks = {onMarkerClick() {}, onError() {}};-const init = (provider: AVMapProvider, key = "fixture-key"): AVMapInit => ({- version: 1, instanceID: "fixture", type: "init", provider, theme: "light",- credentials: {apiKey: key, securityCode: "fixture-security-code"},+test("loads packaged MapLibre and anonymous worker source before the CSP lock", async () => {+ const {scope, requested, container, destroyed} = fixture();+ const signal = new AbortController().signal;+ await assert.rejects(loadAVMapAdapter(init, container, callbacks, signal), /hostUnavailable/);+ assert.equal(requested.length, 0);+ const dispose = await prepareAVMapBootstrap(scope, "openfreemap", signal);+ assert.equal(requested.some(request => request.worker || request.mapCreated), false);+ assert.equal(requested.at(-1).tag, "meta");+ const lockedAt = requested.length - 1;+ const adapter = await loadAVMapAdapter(init, container, callbacks, signal);+ const scripts = requested.filter(request => request.tag === "script");+ assert.equal(scripts.length, 1);+ assert.equal(scripts[0].src, "/stage/build/map/maplibre-gl.js");+ assert.equal(scripts[0].referrerPolicy, "no-referrer");+ assert.equal(requested.find(request => request.tag === "link").href, "/stage/build/map/maplibre-gl.css");+ const worker = requested.find(request => request.url);+ assert.equal(worker.url, "/stage/build/map/maplibre-gl-csp-worker.js");+ assert.equal(worker.options.credentials, "omit");+ assert.equal(worker.options.cache, "no-store");+ assert.equal(worker.options.mode, "cors");+ assert.match(requested.find(request => request.worker).worker, /^blob:/);+ assert.ok(requested.findIndex(request => request.worker) > lockedAt);+ assert.ok(requested.findIndex(request => request.mapCreated) > lockedAt);+ assert.equal(requested.slice(lockedAt + 1).some(request => request.url || request.tag === "script"), false);+ adapter.destroy();+ adapter.destroy();+ dispose();+ assert.equal(destroyed(), 1);});-describe("isolated provider loading", () => {- for (const provider of ["openfreemap", "amap", "tencent", "baidu"] as AVMapProvider[]) {- it(`${provider} loads only its fixed SDK and waits for its documented ready event`, async () => {- const {scope, requested, container, destroyed} = fixture();- await prepareAVMapBootstrap(scope, provider, new AbortController().signal);- const adapter = await loadAVMapAdapter(init(provider), container,- {onMarkerClick() {}, onError: () => assert.fail("unexpected provider error")}, new AbortController().signal);- const scripts = requested.filter((request) => request.tag === "script");- assert.equal(scripts.length, 1);- assert.equal(scripts[0].referrerPolicy, "strict-origin-when-cross-origin");- if (provider === "openfreemap") {- assert.equal(scripts[0].src, "/stage/build/map/maplibre-gl.js");- assert.equal(requested.find((request) => request.tag === "link").href, "/stage/build/map/maplibre-gl.css");- const worker = requested.find((request) => request.url);- assert.equal(worker.url, "/stage/build/map/maplibre-gl-csp-worker.js");- assert.equal(worker.options.credentials, "omit");- assert.equal(worker.options.cache, "no-store");- assert.equal(worker.options.mode, "cors");- assert.match(requested.find((request) => request.worker).worker, /^blob:/);- } else {- const url = new URL(scripts[0].src);- assert.equal(url.origin, {amap: "https://webapi.amap.com", tencent: "https://map.qq.com",- baidu: "https://api.map.baidu.com"}[provider]);- assert.equal(url.searchParams.get(provider === "baidu" ? "ak" : "key"), "fixture-key");- assert.equal(url.searchParams.get("v"), {amap: "2.0", tencent: "1.exp", baidu: "4.0"}[provider]);- assert.equal(url.searchParams.has("libraries"), false);- assert.equal(url.searchParams.has("plugin"), false);- assert.equal(requested.filter((request) => request.tag === "link").length, 0);- if (provider === "amap") {- assert.deepEqual(scope._AMapSecurityConfig, {securityJsCode: "fixture-security-code"});- }- }- assert.equal(scope.__siyuanMapSDKReady, undefined);- adapter.destroy();- adapter.destroy();- assert.equal(destroyed(), 1);- });+test("locked policy removes local access and permits only the tile origin", () => {+ const policy = getAVMapLockedPolicy("openfreemap");+ assert.equal(/localhost|127\.0\.0\.1|stage\/|nonce-|sha256-|\bself\b|unsafe-eval/.test(policy), false);+ assert.match(policy, /script-src 'none'/);+ assert.match(policy, /connect-src https:\/\/tiles\.openfreemap\.org;/);+ assert.match(policy, /frame-src 'none'/);+ assert.match(policy, /form-action 'none'/);+ for (const provider of ["amap", "tencent", "baidu"]) {+ assert.throws(() => getAVMapLockedPolicy(provider as any), /invalidConfiguration/);}- it("passes both documented Baidu coordinate constants from the isolated SDK to individual markers", async () => {- const {requested, container} = fixture();- await prepareAVMapBootstrap(container.ownerDocument.defaultView, "baidu", new AbortController().signal);- const adapter = await loadAVMapAdapter(init("baidu"), container,- {onMarkerClick() {}, onError: () => assert.fail("unexpected provider error")}, new AbortController().signal);- adapter.setPoints([- {id: "bd", longitude: -73, latitude: 40, coordinateSystem: "bd09"},- {id: "gcj", longitude: 121, latitude: 31, coordinateSystem: "gcj02"},- ], 1);- assert.deepEqual(requested.filter((request) => request.markerOptions).map((request) => request.markerOptions), [- {enableDragging: false, coordType: "official-bd09"},- {enableDragging: false, coordType: "official-gcj02"},- ]);- adapter.destroy();- });- it("does not cache SDK credentials between isolated frames", async () => {- const first = fixture();- const second = fixture();- const callbacks = {onMarkerClick() {}, onError() {}};- await prepareAVMapBootstrap(first.scope, "amap", new AbortController().signal);- await prepareAVMapBootstrap(second.scope, "amap", new AbortController().signal);- const one = await loadAVMapAdapter(init("amap", "first-fixture-key"), first.container, callbacks, new AbortController().signal);- const two = await loadAVMapAdapter(init("amap", "second-fixture-key"), second.container, callbacks, new AbortController().signal);- assert.match(first.requested.find((request) => request.tag === "script").src, /first-fixture-key/);- assert.match(second.requested.find((request) => request.tag === "script").src, /second-fixture-key/);- one.destroy();- two.destroy();- });- it("aborts an SDK that never completes map loading and destroys its instance", async () => {- const {container, destroyed} = fixture(false);- const abort = new AbortController();- await prepareAVMapBootstrap(container.ownerDocument.defaultView, "amap", abort.signal);- const pending = loadAVMapAdapter(init("amap"), container, {onMarkerClick() {}, onError() {}}, abort.signal);- await new Promise<void>((resolve) => setImmediate(resolve));- abort.abort();- await assert.rejects(pending, {message: "sdkUnavailable"});- assert.equal(destroyed(), 1);- });- it("sanitizes secret-bearing network failures and does not instantiate the map", async () => {- const {container, destroyed} = fixture(true, true);- await prepareAVMapBootstrap(container.ownerDocument.defaultView, "amap", new AbortController().signal);- await assert.rejects(loadAVMapAdapter(init("amap"), container, {onMarkerClick() {}, onError() {}},- new AbortController().signal), {code: "sdkScriptLoadFailed", message: "Map loading failed"});- assert.equal(destroyed(), 0);- });- it("retains distinct script, callback, SDK global, map construction and ready timeout failures", async () => {- const cases: Array<{code: AVMapLoadErrorCode; ready?: boolean;- options: {skipCallback?: boolean; missingSDK?: boolean; mapError?: boolean; appendError?: boolean};- timeout?: boolean; callbackAssignmentError?: boolean}> = [- {code: "sdkScriptLoadFailed", options: {appendError: true}},- {code: "sdkScriptLoadFailed", options: {}, callbackAssignmentError: true},- {code: "sdkCallbackTimeout", options: {skipCallback: true}, timeout: true},- {code: "sdkGlobalMissing", options: {missingSDK: true}},- {code: "mapCreationFailed", options: {mapError: true}},- {code: "mapReadyTimeout", ready: false, options: {}, timeout: true},- ];- for (const item of cases) {- const {scope, container, destroyed} = fixture(item.ready, false, item.options);- const timers = new Map<number, () => void>();- let timerID = 0;- scope.setTimeout = (callback: () => void) => { timers.set(++timerID, callback); return timerID; };- scope.clearTimeout = (id: number) => timers.delete(id);- const signal = new AbortController().signal;- await prepareAVMapBootstrap(scope, "amap", signal);- if (item.callbackAssignmentError) {- Object.defineProperty(scope, "__siyuanMapSDKReady", {- set() { throw new Error("https://fixture.invalid?key=private"); },- });- }- const pending = loadAVMapAdapter(init("amap"), container, {onMarkerClick() {}, onError() {}}, signal);- const rejected = assert.rejects(pending, (error: unknown) => {- assert.ok(error instanceof AVMapLoadError);- assert.equal(error.code, item.code);- assert.equal(error.message, "Map loading failed");- assert.equal(JSON.stringify(error).includes("private"), false);- return true;- });- await new Promise<void>((resolve) => setImmediate(resolve));- if (item.timeout) {- assert.equal(timers.size, 1);- timers.values().next().value();- }- await rejected;- assert.equal(timers.size, 0);- assert.equal(scope.__siyuanMapSDKReady, undefined);- assert.equal(destroyed(), item.code === "mapReadyTimeout" ? 1 : 0);- }- });- it("does not report an aborted SDK callback wait as a load failure or timeout", async () => {- const {scope, container, destroyed} = fixture(true, false, {skipCallback: true});- const abort = new AbortController();- await prepareAVMapBootstrap(scope, "amap", abort.signal);- const pending = loadAVMapAdapter(init("amap"), container, {onMarkerClick() {}, onError() {}}, abort.signal);- abort.abort();- await assert.rejects(pending, (error: unknown) => {- assert.ok(error instanceof Error && !(error instanceof AVMapLoadError));- assert.equal(error.message, "sdkUnavailable");- return true;- });- assert.equal(scope.__siyuanMapSDKReady, undefined);+});++test("missing assets or SDK never create a map", async () => {+ for (const options of [{assetFailure: true}, {missingSDK: true}]) {+ const {scope, requested, destroyed} = fixture(options);+ await assert.rejects(prepareAVMapBootstrap(scope, "openfreemap", new AbortController().signal), /hostUnavailable/);+ assert.equal(requested.some(request => request.mapCreated || request.worker), false);assert.equal(destroyed(), 0);- });- it("prepares local files before locking and only creates a worker blob/map after locking", async () => {+ }+});++test("removed providers cannot load assets or initialize an adapter", async () => {+ for (const provider of ["amap", "tencent", "baidu"]) {const {scope, requested, container} = fixture();const signal = new AbortController().signal;- await assert.rejects(loadAVMapAdapter(init("openfreemap"), container, {onMarkerClick() {}, onError() {}}, signal),- {message: "hostUnavailable"});+ await assert.rejects(prepareAVMapBootstrap(scope, provider as any, signal), /hostUnavailable/);+ await assert.rejects(loadAVMapAdapter({...init, provider: provider as any}, container, callbacks, signal), /hostUnavailable/);assert.equal(requested.length, 0);- const dispose = await prepareAVMapBootstrap(scope, "openfreemap", signal);- assert.equal(requested.some((request) => request.worker || request.mapCreated), false);- assert.equal(requested[requested.length - 1].tag, "meta");- const lockedAt = requested.length - 1;- const adapter = await loadAVMapAdapter(init("openfreemap"), container, {onMarkerClick() {}, onError() {}}, signal);- assert.ok(requested.findIndex((request) => request.worker) > lockedAt);- assert.ok(requested.findIndex((request) => request.mapCreated) > lockedAt);- assert.equal(requested.slice(lockedAt + 1).some((request) => request.url || request.tag === "script"), false);- adapter.destroy();- dispose();- });- it("never loads a remote SDK during bootstrap and removes every local source from its locked policy", async () => {- for (const provider of ["openfreemap", "amap", "tencent", "baidu"] as AVMapProvider[]) {- const {scope, requested} = fixture();- const dispose = await prepareAVMapBootstrap(scope, provider, new AbortController().signal);- assert.equal(requested.some((request) => /^https?:/.test(request.src || request.url || "")), false);- const policy = getAVMapLockedPolicy(provider);- assert.equal(/localhost|127\.0\.0\.1|stage\/|nonce-|sha256-|\bself\b|unsafe-eval/.test(policy), false);- assert.match(policy, /frame-src 'none'/);- assert.match(policy, /form-action 'none'/);- dispose();- }- });- it("allows only the approved AMap REST script and blob worker while keeping child frames disabled", () => {- const policy = getAVMapLockedPolicy("amap");- assert.match(policy, /(?:^|; )script-src https:\/\/webapi\.amap\.com https:\/\/restapi\.amap\.com https:\/\/jsapi-service\.amap\.com;/);- assert.match(policy, /worker-src blob:; child-src 'none'; frame-src 'none';/);- assert.match(policy, /connect-src https:\/\/webapi\.amap\.com https:\/\/restapi\.amap\.com https:\/\/vdata\.amap\.com https:\/\/jsapi\.amap\.com;/);- assert.equal(/unsafe-eval|script-src[^;]*unsafe-inline|https:\/\/\*\.amap/.test(policy), false);- for (const provider of ["tencent", "baidu"] as AVMapProvider[]) {- assert.match(getAVMapLockedPolicy(provider), /worker-src 'none'; child-src 'none';/);- assert.equal(getAVMapLockedPolicy(provider).includes("restapi.amap.com"), false);- }- assert.match(getAVMapLockedPolicy("openfreemap"), /worker-src blob:; child-src blob:;/);- });+ }+});++test("abort destroys a map that has not become ready", async () => {+ const {scope, container, destroyed} = fixture({ready: false});+ const abort = new AbortController();+ await prepareAVMapBootstrap(scope, "openfreemap", abort.signal);+ const pending = loadAVMapAdapter(init, container, callbacks, abort.signal);+ await new Promise(resolve => setImmediate(resolve));+ abort.abort();+ await assert.rejects(pending, /sdkUnavailable/);+ assert.equal(destroyed(), 1);+});++test("construction and ready failures return controlled stages", async () => {+ for (const mapError of [true, false]) {+ const {scope, container, destroyed} = fixture({mapError, ready: false});+ const signal = new AbortController().signal;+ await prepareAVMapBootstrap(scope, "openfreemap", signal);+ let timer: () => void;+ scope.setTimeout = (callback: () => void) => { timer = callback; return 1; };+ scope.clearTimeout = () => {};+ const pending = loadAVMapAdapter(init, container, callbacks, signal);+ const rejected = assert.rejects(pending, (error: unknown) => {+ assert.ok(error instanceof AVMapLoadError);+ assert.equal(error.code, mapError ? "mapCreationFailed" : "mapReadyTimeout");+ assert.equal(error.message, "Map loading failed");+ return true;+ });+ if (!mapError) timer();+ await rejected;+ assert.equal(destroyed(), mapError ? 0 : 1);+ }});diff --git a/app/src/protyle/render/av/map/providersLoader.ts b/app/src/protyle/render/av/map/providersLoader.tsindex f0780d5dd3..d2c64c2591 100644--- a/app/src/protyle/render/av/map/providersLoader.ts+++ b/app/src/protyle/render/av/map/providersLoader.ts@@ -1,10 +1,7 @@-import {AVMapInit, AVMapLoadError, AVMapLoadErrorCode, AVMapProvider, getAVMapLoadErrorCode} from "./protocol";+import {AVMapInit, AVMapLoadError, AVMapLoadErrorCode, AVMapProvider, getAVMapLoadErrorCode, isAVMapProvider} from "./protocol";import {AVMapAdapter, AVMapAdapterCallbacks, createAVMapAdapter} from "./providers";-const SDK_CALLBACK = "__siyuanMapSDKReady";-interface AVMapPreparedAssets {- provider: AVMapProvider;locked: boolean;sdk?: any;workerSource?: string;@@ -14,127 +11,67 @@ interface AVMapPreparedAssets {const preparedAssets = new WeakMap<Window, AVMapPreparedAssets>();-const loadScript = (scope: Window, source: string, signal: AbortSignal, callback = false): Promise<void> => {- return new Promise((resolve, reject) => {- let script: HTMLScriptElement;- try {- script = scope.document.createElement("script");- } catch (_error) {- reject(new AVMapLoadError("sdkScriptLoadFailed"));- return;- }- const globals = scope as unknown as Record<string, any>;+const loadAsset = (scope: Window, element: HTMLScriptElement | HTMLLinkElement, signal: AbortSignal): Promise<void> =>+ new Promise((resolve, reject) => {let settled = false;- let callbackInstalled = false;- const finish = (success: boolean, code?: AVMapLoadErrorCode) => {- if (settled) {- return;- }+ const finish = (success: boolean) => {+ if (settled) return;settled = true;scope.clearTimeout(timer);- script.onload = null;- script.onerror = null;+ element.onload = null;+ element.onerror = null;signal.removeEventListener("abort", abort);- if (callbackInstalled) {- delete globals[SDK_CALLBACK];- }if (success) {resolve();} else {- script.remove();- reject(code ? new AVMapLoadError(code) : new Error("sdkUnavailable"));+ element.remove();+ reject(new Error("hostUnavailable"));}};const abort = () => finish(false);- const timer = scope.setTimeout(() => finish(false, callback ? "sdkCallbackTimeout" : "sdkScriptLoadFailed"), 20000);+ const timer = scope.setTimeout(abort, 20000);signal.addEventListener("abort", abort, {once: true});+ element.onload = () => finish(true);+ element.onerror = abort;try {- if (callback) {- globals[SDK_CALLBACK] = () => finish(true);- callbackInstalled = true;- } else {- script.onload = () => finish(true);- }- script.onerror = () => finish(false, "sdkScriptLoadFailed");- script.src = source;- script.referrerPolicy = "strict-origin-when-cross-origin";- script.async = true;- if (signal.aborted) {- finish(false);- } else {- scope.document.head.appendChild(script);- }+ if (signal.aborted) finish(false);+ else scope.document.head.appendChild(element);} catch (_error) {- finish(false, "sdkScriptLoadFailed");+ finish(false);}});-};-// 只准备固定无凭据资产,不构造 Map、Worker 或 blob;只有 bootstrap 可以推进锁定阶段。+// Only packaged assets are prepared here; no Map, Worker or blob exists before CSP is locked.export const prepareAVMapAssets = async (scope: Window, provider: AVMapProvider, signal: AbortSignal) => {- if (preparedAssets.has(scope) || signal.aborted) {+ if (!isAVMapProvider(provider) || preparedAssets.has(scope) || signal.aborted) {throw new Error("hostUnavailable");}- const assets: AVMapPreparedAssets = {provider, locked: false, destroy: () => {+ const assets: AVMapPreparedAssets = {locked: false, destroy: () => {if (assets.workerURL) {URL.revokeObjectURL(assets.workerURL);assets.workerURL = undefined;}assets.workerSource = undefined;- if (preparedAssets.get(scope) === assets) {- preparedAssets.delete(scope);- }+ if (preparedAssets.get(scope) === assets) preparedAssets.delete(scope);}};preparedAssets.set(scope, assets);try {- if (provider === "openfreemap") {- await new Promise<void>((resolve, reject) => {- const stylesheet = scope.document.createElement("link");- stylesheet.rel = "stylesheet";- stylesheet.href = "/stage/build/map/maplibre-gl.css";- let settled = false;- const finish = (success: boolean) => {- if (settled) {- return;- }- settled = true;- scope.clearTimeout(timer);- signal.removeEventListener("abort", abort);- stylesheet.onload = null;- stylesheet.onerror = null;- if (success) {- resolve();- } else {- stylesheet.remove();- reject(new Error("hostUnavailable"));- }- };- const abort = () => finish(false);- const timer = scope.setTimeout(abort, 20000);- signal.addEventListener("abort", abort, {once: true});- stylesheet.onload = () => finish(true);- stylesheet.onerror = abort;- scope.document.head.appendChild(stylesheet);- if (signal.aborted) {- finish(false);- }- });- await loadScript(scope, "/stage/build/map/maplibre-gl.js", signal);- const response = await scope.fetch("/stage/build/map/maplibre-gl-csp-worker.js", {- credentials: "omit", mode: "cors", cache: "no-store", referrerPolicy: "no-referrer", signal,- });- if (!response.ok) {- throw new Error("hostUnavailable");- }- assets.workerSource = await response.text();- assets.sdk = (scope as unknown as Record<string, any>).maplibregl;- if (!assets.sdk) {- throw new Error("hostUnavailable");- }- }- if (signal.aborted) {- throw new Error("hostUnavailable");- }+ const stylesheet = scope.document.createElement("link");+ stylesheet.rel = "stylesheet";+ stylesheet.href = "/stage/build/map/maplibre-gl.css";+ await loadAsset(scope, stylesheet, signal);+ const script = scope.document.createElement("script");+ script.src = "/stage/build/map/maplibre-gl.js";+ script.referrerPolicy = "no-referrer";+ script.async = true;+ await loadAsset(scope, script, signal);+ const response = await scope.fetch("/stage/build/map/maplibre-gl-csp-worker.js", {+ credentials: "omit", mode: "cors", cache: "no-store", referrerPolicy: "no-referrer", signal,+ });+ if (!response.ok) throw new Error("hostUnavailable");+ assets.workerSource = await response.text();+ assets.sdk = (scope as unknown as Record<string, any>).maplibregl;+ if (!assets.sdk || signal.aborted) throw new Error("hostUnavailable");return {lock: () => { assets.locked = true; }, destroy: assets.destroy};} catch (_error) {assets.destroy();@@ -145,48 +82,21 @@ export const prepareAVMapAssets = async (scope: Window, provider: AVMapProvider,export const loadAVMapAdapter = async (init: AVMapInit, container: HTMLElement,callbacks: AVMapAdapterCallbacks, signal: AbortSignal): Promise<AVMapAdapter> => {const scope = container.ownerDocument.defaultView;- const globals = scope as unknown as Record<string, any>;- const {provider, credentials} = init;const assets = preparedAssets.get(scope);- if (!assets?.locked || assets.provider !== provider || signal.aborted) {+ if (!isAVMapProvider(init.provider) || !assets?.locked || signal.aborted) {throw new Error("hostUnavailable");}- if (provider !== "openfreemap" && !credentials.apiKey || provider === "amap" && !credentials.securityCode) {- throw new Error("missingCredentials");- }try {- let sdk: any;- if (provider === "openfreemap") {- // blob 与 Worker 的创建都晚于 CSP 锁定,不继承启动阶段的本地网络权限。- assets.workerURL = URL.createObjectURL(new Blob([assets.workerSource], {type: "text/javascript"}));- assets.workerSource = undefined;- sdk = assets.sdk;- sdk.setWorkerUrl(assets.workerURL);- } else {- const scriptURL = new URL(provider === "amap" ? "https://webapi.amap.com/maps" :- provider === "tencent" ? "https://map.qq.com/api/gljs" : "https://api.map.baidu.com/api");- scriptURL.searchParams.set("v", provider === "amap" ? "2.0" : provider === "tencent" ? "1.exp" : "4.0");- scriptURL.searchParams.set(provider === "baidu" ? "ak" : "key", credentials.apiKey);- scriptURL.searchParams.set("callback", SDK_CALLBACK);- if (provider === "amap") {- globals._AMapSecurityConfig = {securityJsCode: credentials.securityCode};- }- await loadScript(scope, scriptURL.href, signal, true);- sdk = globals[provider === "amap" ? "AMap" : provider === "tencent" ? "TMap" : "BMap"];- }- if (signal.aborted) {- throw new Error("sdkUnavailable");- }- if (!sdk) {- throw new AVMapLoadError("sdkGlobalMissing");- }+ // Worker and blob inherit the locked policy, with no local network authority.+ assets.workerURL = URL.createObjectURL(new Blob([assets.workerSource], {type: "text/javascript"}));+ assets.workerSource = undefined;+ const sdk = assets.sdk;+ sdk.setWorkerUrl(assets.workerURL);let adapter: AVMapAdapter;await new Promise<void>((resolve, reject) => {let settled = false;const finish = (success: boolean, code?: AVMapLoadErrorCode) => {- if (settled) {- return;- }+ if (settled) return;settled = true;scope.clearTimeout(timer);signal.removeEventListener("abort", abort);@@ -204,14 +114,12 @@ export const loadAVMapAdapter = async (init: AVMapInit, container: HTMLElement,const timer = scope.setTimeout(() => finish(false, "mapReadyTimeout"), 20000);signal.addEventListener("abort", abort, {once: true});try {- adapter = createAVMapAdapter(provider, sdk, container, {...callbacks,- onReady: () => finish(true), onError: (code) => {+ adapter = createAVMapAdapter(init.provider, sdk, container, {...callbacks,+ onReady: () => finish(true), onError: code => {callbacks.onError(code);finish(false);- }}, {bd09: globals.BMAP_COORD_BD09, gcj02: globals.BMAP_COORD_GCJ02});- if (signal.aborted) {- finish(false);- }+ }});+ if (signal.aborted) finish(false);} catch (_error) {finish(false, "mapCreationFailed");}@@ -228,9 +136,7 @@ export const loadAVMapAdapter = async (init: AVMapInit, container: HTMLElement,} catch (error) {assets.destroy();const code = getAVMapLoadErrorCode(error);- if (code) {- throw new AVMapLoadError(code);- }+ if (code) throw new AVMapLoadError(code);throw new Error("sdkUnavailable");}};diff --git a/app/src/protyle/render/av/map/render.test.ts b/app/src/protyle/render/av/map/render.test.tsindex c1f289968e..0fc32eb5f4 100644--- a/app/src/protyle/render/av/map/render.test.ts+++ b/app/src/protyle/render/av/map/render.test.ts@@ -53,9 +53,9 @@ const setup = (options: {published?: boolean; desktop?: boolean; hostSupported?:const calls: string[] = [];const data = {id: "database", name: "Database", views: [], viewID: "map-view", viewType: "map", view: {columns: [{id: "location", type: "location", hidden: true}], rowCount: 12,- map: {serviceID: "service", locationKeyID: "location", showRecordList: false},+ map: {locationKeyID: "location"},rows: [{id: "row", cells: [{id: "location-value", value: {type: "location", keyID: "location",- location: {latitude: 0, longitude: 0, coordinateSystem: "wgs84", name: "Private name", originalInput: "Private input"}}},+ location: {latitude: 0, longitude: 0, name: "Private name", originalInput: "Private input"}}},{id: "primary-value", valueType: "block", value: {type: "block", isDetached: true,block: {content: "Private title"}}}]}],}} as IAV;@@ -71,16 +71,12 @@ const setup = (options: {published?: boolean; desktop?: boolean; hostSupported?:return () => lifecycle === next && next.root.isConnected;}},"../../../../util/escape": escape,- "../../../../util/fetch": {fetchSyncPost: async (url: string) => {+ "../../../../util/fetch": {fetchSyncPost: async (url: string, payload: unknown) => {+ assert.equal(JSON.stringify(payload), "{}");calls.push(url);return options.runtime ? options.runtime() : {code: 0, data: {provider: "openfreemap"}};}},- "./settings": {loadMapServices: async () => {- calls.push("/api/map/getConf");- return [{id: "service", provider: "openfreemap", configured: true}];- }},"./protocol": protocol,- "../../../../config/mapRuntime": {MAP_CONFIG_CHANGED_EVENT: "map-config-change"},"../openDatabaseRow": {openDatabaseRowByData: (_protyle: unknown, row: unknown) => opened.push(row)},"./host": {isAVMapHostEnvironmentSupported: () => options.hostSupported ?? true,createAVMapHost: (_container: unknown, configuration: AVMapHostOptions) => {@@ -119,7 +115,7 @@ const setup = (options: {published?: boolean; desktop?: boolean; hostSupported?:status: () => root.querySelector(".av__map-status").textContent};};-test("published maps render a status without inline settings, runtime credentials, or SDK calls", async () => {+test("published maps render a status without inline settings, runtime admission, or SDK calls", async () => {const scenario = setup({published: true});await scenario.render();assert.deepEqual(scenario.calls, []);@@ -128,27 +124,27 @@ test("published maps render a status without inline settings, runtime credentialassert.doesNotMatch(scenario.roots[0].innerHTML, /av__map-settings|data-map-setting|data-map-configure|av__map-actions|data-map-fit|data-map-retry/);});-test("unconfigured, unavailable host, offline and incompatible maps never request runtime credentials", async () => {+test("missing field, unavailable host, offline and unsupported projection maps never request runtime admission", async () => {for (const option of [{hostSupported: false}, {online: false}, {}]) {const scenario = setup(option);- if (!Object.keys(option).length) (scenario.data.view as IAVTable).map.serviceID = "";+ if (!Object.keys(option).length) (scenario.data.view as IAVTable).map.locationKeyID = "";await scenario.render();- assert.deepEqual(scenario.calls, ["/api/map/getConf"]);+ assert.deepEqual(scenario.calls, []);assert.equal(scenario.hosts.length, 0);}const incompatible = setup();- (incompatible.data.view as IAVTable).rows[0].cells[0].value.location.coordinateSystem = "unknown";+ (incompatible.data.view as IAVTable).rows[0].cells[0].value.location.latitude = 90;await incompatible.render();- assert.deepEqual(incompatible.calls, ["/api/map/getConf"]);+ assert.deepEqual(incompatible.calls, []);assert.equal(incompatible.status(), "mapNoMarkers");});test("map sends only IDs and coordinates and opens the existing row detail for a current marker", async () => {const scenario = setup();await scenario.render();- assert.deepEqual(scenario.calls, ["/api/map/getConf", "/api/map/getRuntime"]);+ assert.deepEqual(scenario.calls, ["/api/map/getRuntime"]);const host = scenario.hosts[0];- assert.equal(JSON.stringify(host.points), JSON.stringify([{id: "row", longitude: 0, latitude: 0, coordinateSystem: "wgs84"}]));+ assert.equal(JSON.stringify(host.points), JSON.stringify([{id: "row", longitude: 0, latitude: 0}]));assert.doesNotMatch(JSON.stringify(host.options), /Private|primary-value|notebook/);host.options.onReady();assert.doesNotMatch(scenario.roots[0].innerHTML, /av__map-settings|data-map-setting|data-map-configure|av__map-actions|data-map-fit|data-map-retry/);@@ -170,7 +166,7 @@ test("map sends only IDs and coordinates and opens the existing row detail for atest("an independently secured desktop host is selected instead of a renderer iframe", async () => {const scenario = setup({desktop: true, hostSupported: false});await scenario.render();- assert.deepEqual(scenario.calls, ["/api/map/getConf", "/api/map/getRuntime", "desktop-host"]);+ assert.deepEqual(scenario.calls, ["/api/map/getRuntime", "desktop-host"]);assert.equal(scenario.hosts.length, 1);});@@ -182,7 +178,7 @@ test("late native capability replies cannot initialize a removed map", async ()scenario.destroyMap();report(true);await pending;- assert.deepEqual(scenario.calls, ["/api/map/getConf"]);+ assert.deepEqual(scenario.calls, []);assert.equal(scenario.hosts.length, 0);});@@ -197,7 +193,7 @@ test("stale runtime responses cannot mount a map after the view is removed", asyassert.equal(scenario.hosts.length, 0);});-test("history and oversized loaded pages report status without fetching runtime credentials", async () => {+test("history and oversized loaded pages report status without fetching runtime admission", async () => {const history = setup();history.protyle.options.history = {created: "version"};await history.render();@@ -206,7 +202,7 @@ test("history and oversized loaded pages report status without fetching runtimeconst view = scenario.data.view as IAVTable;view.rows = Array.from({length: protocol.AV_MAP_MAX_POINTS + 1}, (_, index) => ({...view.rows[0], id: `row-${index}`}));await scenario.render();- assert.deepEqual(scenario.calls, ["/api/map/getConf"]);+ assert.deepEqual(scenario.calls, []);assert.equal(scenario.status(), "mapTooManyMarkers");assert.equal(scenario.hosts.length, 0);});diff --git a/app/src/protyle/render/av/map/render.ts b/app/src/protyle/render/av/map/render.tsindex 7b2f107c4c..f50cddff47 100644--- a/app/src/protyle/render/av/map/render.ts+++ b/app/src/protyle/render/av/map/render.ts@@ -1,14 +1,12 @@import {escapeAttr, escapeHtml} from "../../../../util/escape";import {fetchSyncPost} from "../../../../util/fetch";import {getAVData} from "../virtualScroll";-import {loadMapServices} from "./settings";import {openMapRecord} from "./openRecord";import {canLoadMapHost, destroyMap, getMapPoints, getMapSettings, registerMap} from "./state";import {createAVMapHost, isAVMapHostEnvironmentSupported} from "./host";import {createDesktopAVMapHost, isDesktopAVMapHostSupported} from "./desktopTransport";import type {AVMapHost} from "./host";import {AV_MAP_ATTRIBUTION_LINKS, AV_MAP_MAX_POINTS} from "./protocol";-import {MAP_CONFIG_CHANGED_EVENT} from "../../../../config/mapRuntime";const getTheme = () => document.documentElement.getAttribute("data-theme-mode") === "dark" ? "dark" : "light";@@ -52,14 +50,12 @@ export const renderMap = async (blockElement: HTMLElement, protyle: IProtyle, dalet resizeObserver: ResizeObserver;let revision = 0;const offline = () => fallback(window.siyuan.languages.mapOffline);- const configChanged = () => { void renderMap(blockElement, protyle, data); };const current = registerMap(blockElement, {root, destroy: () => {revision++;host?.destroy();themeObserver?.disconnect();resizeObserver?.disconnect();window.removeEventListener("offline", offline);- window.removeEventListener(MAP_CONFIG_CHANGED_EVENT, configChanged);}});const fallback = (message: string) => {if (!current()) {@@ -80,12 +76,7 @@ export const renderMap = async (blockElement: HTMLElement, protyle: IProtyle, dafallback(window.siyuan.languages.mapUnsupportedClient);return;}- window.addEventListener(MAP_CONFIG_CHANGED_EVENT, configChanged);try {- const services = await loadMapServices();- if (!current()) {- return;- }if (!settings.locationKeyID) {fallback(window.siyuan.languages.mapSelectLocationField);return;@@ -94,16 +85,7 @@ export const renderMap = async (blockElement: HTMLElement, protyle: IProtyle, dafallback(window.siyuan.languages.mapMissingLocationField);return;}- if (!settings.serviceID) {- fallback(window.siyuan.languages.mapSelectService);- return;- }- const service = services.find(service => service.id === settings.serviceID);- if (!service) {- fallback(window.siyuan.languages.mapMissingService);- return;- }- const {points, skipped} = getMapPoints(view, service.provider);+ const {points, skipped} = getMapPoints(view);root.querySelector(".av__map-skipped").textContent = Object.entries(skipped).reduce((text, [key, value]) =>text.replace("${" + key + "}", value.toString()), window.siyuan.languages.mapSkippedLocations);if (!canLoadMapHost({published: false, history: false, protocol: window.location.protocol})) {@@ -131,16 +113,12 @@ export const renderMap = async (blockElement: HTMLElement, protyle: IProtyle, dafallback(window.siyuan.languages.mapOffline);return;}- if (!service.configured) {- fallback(window.siyuan.languages.mapCredentialsMissing);- return;- }status.textContent = window.siyuan.languages.mapLoading;- const response = await fetchSyncPost("/api/map/getRuntime", {serviceID: settings.serviceID});+ const response = await fetchSyncPost("/api/map/getRuntime", {});if (!current()) {return;}- if (response.code !== 0 || response.data.provider !== service.provider) {+ if (response.code !== 0 || response.data?.provider !== "openfreemap") {fallback(response.msg === "mapAuthenticationBypass" ? window.siyuan.languages.mapAuthenticationBypass :window.siyuan.languages.mapLoadError);return;@@ -149,12 +127,11 @@ export const renderMap = async (blockElement: HTMLElement, protyle: IProtyle, daconst pointIDs = new Set(points.map(point => point.id));const activeRevision = ++revision;// 固定官方署名链接留在父页,避免为第三方 SDK 放宽沙箱弹窗权限。- attribution.innerHTML = AV_MAP_ATTRIBUTION_LINKS[service.provider].map(link =>+ attribution.innerHTML = AV_MAP_ATTRIBUTION_LINKS.openfreemap.map(link =>`<a href="${escapeAttr(link.href)}" target="_blank" rel="noopener noreferrer">${escapeHtml(link.label)}</a>`).join(" · ");canvas.classList.remove("fn__none");host = (desktopHost ? createDesktopAVMapHost : createAVMapHost)(canvas, {- provider: response.data.provider,- credentials: {apiKey: response.data.apiKey, securityCode: response.data.securityCode},+ provider: "openfreemap",theme: getTheme(),title: window.siyuan.languages.mapView,onReady: () => {diff --git a/app/src/protyle/render/av/map/settings.test.ts b/app/src/protyle/render/av/map/settings.test.tsindex 1cc7e20c31..d0be7aef9d 100644--- a/app/src/protyle/render/av/map/settings.test.ts+++ b/app/src/protyle/render/av/map/settings.test.ts@@ -6,13 +6,10 @@ import {ModuleKind, ScriptTarget, transpileModule} from "typescript";import * as escape from "../../../../util/escape";import * as state from "./state";-const setup = (loadServices: () => Promise<import("./settings").IMapServiceChoice[]> = async () => []) => {+const setup = () => {const operations: Array<{perform: IOperation[]; undo: IOperation[]}> = [];const menus: Array<Array<{label: string; checked: boolean; click: () => void}>> = [];- const requests: string[] = [];- const languages = {mapService: "Service", mapLocationField: "Location", mapSelectService: "Select service",- mapSelectLocationField: "Select field", mapMissingService: "Missing service",- mapMissingLocationField: "Missing field", loading: "Loading"};+ const languages = {mapLocationField: "Location", mapSelectLocationField: "Select field", mapMissingLocationField: "Missing field"};const methods = {} as typeof import("./settings");const context = {siyuan: {isPublish: false, languages}};runInNewContext(transpileModule(readFileSync("src/protyle/render/av/map/settings.ts", "utf8"), {@@ -22,10 +19,7 @@ const setup = (loadServices: () => Promise<import("./settings").IMapServiceChoic"../../../../util/escape": escape,"../../../wysiwyg/transaction": {transaction: (_protyle: IProtyle, perform: IOperation[], undo: IOperation[]) =>operations.push({perform, undo})},- "../../../../util/fetch": {fetchSyncPost: async (url: string) => {- requests.push(url);- return {code: 0, data: {services: await loadServices()}};- }},+ "../../../../util/fetch": {fetchSyncPost: () => assert.fail("settings must not fetch services")},"../viewSettingMenu": {openViewSettingMenu() {}},"../../../../plugin/Menu": {Menu: class {items: Array<{label: string; checked: boolean; click: () => void}> = [];@@ -33,69 +27,60 @@ const setup = (loadServices: () => Promise<import("./settings").IMapServiceChoicaddItem(item: {label: string; checked: boolean; click: () => void}) { this.items.push(item); }}},})[id] || {}});- return {methods, operations, menus, requests, context};+ return {methods, operations, menus, context};};const data = () => ({id: "database", viewID: "map-view", view: {- map: {serviceID: "missing-service", locationKeyID: "missing-field", showRecordList: true},+ map: {locationKeyID: "missing-field"},columns: [{id: "location", type: "location", name: "<Location>"}, {id: "text", type: "text", name: "Text"}],}}) as IAV;-const control = (key: string) => {+const control = () => {const handlers: Record<string, (event?: {preventDefault: () => void; stopPropagation: () => void}) => void> = {};- const label = {textContent: "", title: ""};- return {tagName: "BUTTON", dataset: {mapSetting: key}, disabled: false, isConnected: true,- label, querySelector: () => label,+ return {disabled: false, isConnected: true,addEventListener: (type: string, handler: typeof handlers[string]) => { handlers[type] = handler; }, handlers};};-test("map settings preserve missing IDs, escape labels, and never automatically select a service or field", () => {+test("map settings expose only a field choice and preserve missing field IDs", () => {const {methods, operations} = setup();- const current = data();- const view = current.view as IAVTable;+ const view = data().view as IAVTable;const before = JSON.stringify(view);- const html = methods.getMapSettingsHTML(view, []);- assert.match(html, /Missing service/);+ const html = methods.getMapSettingsHTML(view);assert.match(html, /Missing field/);- const pendingHTML = methods.getMapSettingsHTML(view);- assert.match(pendingHTML, /Loading/);- for (const settingsHTML of [html, pendingHTML]) {- assert.doesNotMatch(settingsHTML, /missing-service|missing-field|showRecordList|data-map-configure|checkbox|<select/);- assert.equal((settingsHTML.match(/data-map-setting=/g) || []).length, 2);- }+ assert.doesNotMatch(html, /serviceID|missing-field|showRecordList|checkbox|<select/);+ assert.equal((html.match(/data-map-setting=/g) || []).length, 1);assert.equal(JSON.stringify(view), before);assert.equal(operations.length, 0);+ view.map.locationKeyID = "location";+ assert.match(methods.getMapSettingsHTML(view), /<Location>/);});-test("map selection uses an undoable full-settings transaction without changing cells", async () => {+test("map field selection uses an undoable transaction without changing cells", () => {const {methods, operations, menus} = setup();- const current = data();- const field = control("locationKeyID");+ const field = control();let updated = 0;- methods.bindMapSettings({data: current, protyle: {options: {}} as IProtyle,+ methods.bindMapSettings({data: data(), protyle: {options: {}} as IProtyle,blockElement: {getAttribute: () => "carrier"} as unknown as Element,- menuElement: {querySelectorAll: () => [field]} as unknown as Element,- services: [], onChange: () => updated++});- await field.handlers.click({preventDefault() {}, stopPropagation() {}});+ menuElement: {querySelectorAll: () => [field]} as unknown as Element, onChange: () => updated++});+ field.handlers.click({preventDefault() {}, stopPropagation() {}});assert.equal(menus[0].filter(item => item.checked).length, 1);menus[0].find(item => item.checked).click();assert.equal(operations.length, 0);menus[0].find(item => item.label === "<Location>").click();assert.equal(updated, 1);const perform = operations[0].perform[0];- const undo = operations[0].undo[0];assert.equal(perform.action, "setAttrViewMap");assert.equal(perform.avID, "database");assert.equal(perform.viewID, "map-view");assert.equal(perform.blockID, "carrier");- assert.equal(JSON.stringify(perform.data), JSON.stringify({serviceID: "missing-service", locationKeyID: "location", showRecordList: true}));- assert.equal(JSON.stringify(undo.data), JSON.stringify({serviceID: "missing-service", locationKeyID: "missing-field", showRecordList: true}));+ assert.equal(JSON.stringify(perform.data), JSON.stringify({locationKeyID: "location"}));+ assert.equal(JSON.stringify(operations[0].undo[0].data), JSON.stringify({locationKeyID: "missing-field"}));});test("readonly, history, and published maps cannot change settings", () => {for (const mode of ["disabled", "history", "published"]) {- const {methods, operations, requests, context} = setup();- const field = control("serviceID");+ const {methods, operations, context} = setup();+ const field = control();context.siyuan.isPublish = mode === "published";methods.bindMapSettings({data: data(), protyle: {disabled: mode === "disabled",options: {history: mode === "history" ? {created: "version"} : undefined}} as IProtyle,@@ -103,43 +88,21 @@ test("readonly, history, and published maps cannot change settings", () => {assert.equal(field.disabled, true);assert.equal(Object.keys(field.handlers).length, 0);assert.equal(operations.length, 0);- assert.deepEqual(requests, mode === "disabled" ? ["/api/map/getConf"] : []);}});-test("map menus resolve service names before interaction and retain IDs only for transactions", async () => {- const serviceID = "19082d45-0536-457f-a57e-8c1ea5222222";- const choices = [{id: serviceID, name: "<OFM>", provider: "openfreemap" as const, configured: true}];- const {methods, requests, menus} = setup(async () => choices);- const current = data();- const view = current.view as IAVTable;- view.map.serviceID = serviceID;- view.map.locationKeyID = "location";- const html = methods.getMapSettingsHTML(view, choices);- assert.match(html, /<OFM>/);- assert.match(html, /<Location>/);- assert.match(html, /fn__ellipsis av__map-setting-value/);- assert.doesNotMatch(html, new RegExp(serviceID));- const service = control("serviceID");- methods.bindMapSettings({data: current, protyle: {options: {}} as IProtyle,- blockElement: {} as Element, menuElement: {querySelectorAll: () => [service]} as unknown as Element});- await new Promise(resolve => setImmediate(resolve));- assert.equal(service.label.textContent, "<OFM>");- assert.equal(service.label.title, "<OFM>");- await service.handlers.click({preventDefault() {}, stopPropagation() {}});- assert.deepEqual(requests, ["/api/map/getConf"]);- assert.equal(menus[0].find(item => item.checked).label, "<OFM>");- assert.equal(view.map.serviceID, serviceID);-});--test("late map service responses cannot update a dismissed menu", async () => {- let respond: (services: import("./settings").IMapServiceChoice[]) => void;- const {methods} = setup(() => new Promise(resolve => { respond = resolve; }));- const service = control("serviceID");- methods.bindMapSettings({data: data(), protyle: {options: {}} as IProtyle,- blockElement: {} as Element, menuElement: {querySelectorAll: () => [service]} as unknown as Element});- service.isConnected = false;- respond([]);- await new Promise(resolve => setImmediate(resolve));- assert.equal(service.label.textContent, "");+test("a dismissed menu and a later readonly transition cannot change map fields", () => {+ const {methods, operations, menus} = setup();+ const field = control();+ const protyle = {options: {}} as IProtyle;+ methods.bindMapSettings({data: data(), protyle, blockElement: {} as Element,+ menuElement: {querySelectorAll: () => [field]} as unknown as Element});+ field.isConnected = false;+ field.handlers.click({preventDefault() {}, stopPropagation() {}});+ assert.equal(menus.length, 0);+ field.isConnected = true;+ field.handlers.click({preventDefault() {}, stopPropagation() {}});+ protyle.disabled = true;+ menus[0].find(item => item.label === "<Location>").click();+ assert.equal(operations.length, 0);});diff --git a/app/src/protyle/render/av/map/settings.ts b/app/src/protyle/render/av/map/settings.tsindex 128a058f08..af97bbd61d 100644--- a/app/src/protyle/render/av/map/settings.ts+++ b/app/src/protyle/render/av/map/settings.ts@@ -1,64 +1,30 @@import {transaction} from "../../../wysiwyg/transaction";import {escapeAttr, escapeHtml} from "../../../../util/escape";-import {fetchSyncPost} from "../../../../util/fetch";import {Menu} from "../../../../plugin/Menu";import {openViewSettingMenu} from "../viewSettingMenu";import {getMapSettings} from "./state";-import type {AVMapProvider} from "./protocol";--export interface IMapServiceChoice {- id: string;- name: string;- provider: AVMapProvider;- configured: boolean;-}export const canEditMapSettings = (protyle: IProtyle) => !protyle.disabled && !window.siyuan.isPublish &&!protyle.options.history?.created && !protyle.options.history?.snapshot;-export const loadMapServices = async (): Promise<IMapServiceChoice[]> => {- const response = await fetchSyncPost("/api/map/getConf", {});- if (response.code !== 0) {- throw new Error("Map configuration is unavailable");+const getChoices = (view: IAVTable) => {+ const choices = [{value: "", label: window.siyuan.languages.mapSelectLocationField},+ ...view.columns.filter(column => column.type === "location").map(column => ({value: column.id, label: column.name}))];+ const saved = getMapSettings(view).locationKeyID;+ if (saved && !choices.some(choice => choice.value === saved)) {+ choices.push({value: saved, label: window.siyuan.languages.mapMissingLocationField});}- return response.data.services;-};--const getItems = (view: IAVTable, services?: IMapServiceChoice[]) => {- const settings = getMapSettings(view);- const fields = view.columns.filter(column => column.type === "location");- const items: Array<{key: "serviceID" | "locationKeyID"; label: string;- choices: Array<{value: string; label: string}>}> = [{- key: "serviceID", label: window.siyuan.languages.mapService,- choices: [{value: "", label: window.siyuan.languages.mapSelectService},- ...(services || []).map(service => ({value: service.id, label: service.name}))],- }, {- key: "locationKeyID", label: window.siyuan.languages.mapLocationField,- choices: [{value: "", label: window.siyuan.languages.mapSelectLocationField},- ...fields.map(column => ({value: column.id, label: column.name}))],- }];- items.forEach(item => {- const saved = settings[item.key];- if (saved && !item.choices.some(choice => choice.value === saved)) {- item.choices.push({value: saved, label: item.key === "serviceID" ?- services ? window.siyuan.languages.mapMissingService : window.siyuan.languages.loading :- window.siyuan.languages.mapMissingLocationField});- }- });- return items;+ return choices;};-export const getMapSettingsHTML = (view: IAVTable, services?: IMapServiceChoice[]) => {- const settings = getMapSettings(view);- return getItems(view, services).map(item => {- const value = settings[item.key];- const label = item.choices.find(choice => choice.value === value).label;- return `<button class="b3-menu__item" data-map-setting="${item.key}">- <span class="fn__flex-center">${item.label}</span><span class="fn__flex-1"></span>+export const getMapSettingsHTML = (view: IAVTable) => {+ const value = getMapSettings(view).locationKeyID;+ const label = getChoices(view).find(choice => choice.value === value).label;+ return `<button class="b3-menu__item" data-map-setting="locationKeyID">+ <span class="fn__flex-center">${window.siyuan.languages.mapLocationField}</span><span class="fn__flex-1"></span><span class="b3-menu__accelerator fn__ellipsis av__map-setting-value" title="${escapeAttr(label)}">${escapeHtml(label)}</span><svg class="b3-menu__icon b3-menu__icon--small"><use xlink:href="#iconRight"></use></svg></button>`;- }).join("");};export const bindMapSettings = (options: {@@ -66,49 +32,19 @@ export const bindMapSettings = (options: {blockElement: Element;data: IAV;menuElement: Element;- services?: IMapServiceChoice[];onChange?: () => void;}) => {- const controls = options.menuElement.querySelectorAll<HTMLButtonElement>("[data-map-setting]");+ const controls = options.menuElement.querySelectorAll<HTMLButtonElement>('[data-map-setting="locationKeyID"]');const view = options.data.view as IAVTable;- const services = options.services ? Promise.resolve(options.services) : window.siyuan.isPublish ||- options.protyle.options.history?.created || options.protyle.options.history?.snapshot ?- Promise.resolve([] as IMapServiceChoice[]) : loadMapServices();- const updateLabels = (choices: IMapServiceChoice[]) => {- const items = getItems(view, choices);- controls.forEach(control => {- if (!control.isConnected) {- return;- }- const item = items.find(item => item.key === control.dataset.mapSetting);- const label = item.choices.find(choice => choice.value === getMapSettings(view)[item.key]).label;- const valueElement = control.querySelector<HTMLElement>(".av__map-setting-value");- valueElement.textContent = label;- valueElement.title = label;- });- };- void services.then(updateLabels).catch(() => {- controls.forEach(control => {- if (control.isConnected && control.dataset.mapSetting === "serviceID") {- const valueElement = control.querySelector<HTMLElement>(".av__map-setting-value");- valueElement.textContent = window.siyuan.languages.mapSelectService;- valueElement.title = window.siyuan.languages.mapSelectService;- }- });- });if (!canEditMapSettings(options.protyle)) {controls.forEach(control => { control.disabled = true; });return;}- const update = (key: "serviceID" | "locationKeyID", value: string) => {- if (!canEditMapSettings(options.protyle)) {- return;- }+ const update = (locationKeyID: string) => {+ if (!canEditMapSettings(options.protyle)) return;const previous = getMapSettings(view);- if (previous[key] === value) {- return;- }- const next = {...previous, [key]: value};+ if (previous.locationKeyID === locationKeyID) return;+ const next = {locationKeyID};const operation = {action: "setAttrViewMap" as const, avID: options.data.id,blockID: options.blockElement.getAttribute("data-node-id"), viewID: options.data.viewID};transaction(options.protyle, [{...operation, data: next}], [{...operation, data: previous}]);@@ -116,18 +52,13 @@ export const bindMapSettings = (options: {options.onChange?.();};controls.forEach(control => {- const key = control.dataset.mapSetting as "serviceID" | "locationKeyID";- control.addEventListener("click", async event => {+ control.addEventListener("click", event => {event.preventDefault();event.stopPropagation();- const choices = await services.catch(() => [] as IMapServiceChoice[]);- if (!control.isConnected) {- return;- }- const item = getItems(view, choices).find(item => item.key === key);+ if (!control.isConnected || !canEditMapSettings(options.protyle)) return;const menu = new Menu();- item.choices.forEach(choice => menu.addItem({iconHTML: "", label: escapeHtml(choice.label),- checked: getMapSettings(view)[key] === choice.value, click: () => update(key, choice.value)}));+ getChoices(view).forEach(choice => menu.addItem({iconHTML: "", label: escapeHtml(choice.label),+ checked: getMapSettings(view).locationKeyID === choice.value, click: () => update(choice.value)}));openViewSettingMenu(menu, control);});});diff --git a/app/src/protyle/render/av/map/state.test.ts b/app/src/protyle/render/av/map/state.test.tsindex 047b4cca80..30c777e4ac 100644--- a/app/src/protyle/render/av/map/state.test.ts+++ b/app/src/protyle/render/av/map/state.test.ts@@ -5,7 +5,7 @@ import {AV_MAP_MAX_POINTS} from "./protocol";const table = (locations: IAVCellLocationValue[]) => ({rowCount: locations.length,- map: {serviceID: "saved-service", locationKeyID: "location", showRecordList: false},+ map: {locationKeyID: "location"},columns: [{id: "primary", type: "block"}, {id: "location", type: "location", hidden: true}],rows: locations.map((location, index) => ({id: `row-${index}`, cells: [{value: {type: "block", block: {content: "Private title"}}},@@ -13,35 +13,28 @@ const table = (locations: IAVCellLocationValue[]) => ({]})),}) as IAVTable;-test("map uses hidden selected fields and copies only valid compatible IDs and coordinates", () => {+test("map uses hidden selected fields and copies only valid WGS84 IDs and coordinates", () => {const view = table([- {latitude: 0, longitude: 0, coordinateSystem: "wgs84", name: "Private", originalInput: "Private source"},+ {latitude: 0, longitude: 0, name: "Private", originalInput: "Private source"},{name: "No coordinates"},- {latitude: 91, longitude: 0, coordinateSystem: "wgs84"},- {latitude: 0, longitude: 0, coordinateSystem: "unknown"},- {latitude: 0, longitude: 0},- {latitude: 0, longitude: 0, coordinateSystem: "gcj02"},- {latitude: 0, longitude: 0, coordinateSystem: "bd09"},- {latitude: 0, longitude: null, coordinateSystem: "wgs84"},+ {latitude: 91, longitude: 0},+ {latitude: 0, longitude: null},]);const before = JSON.stringify(view);- const result = getMapPoints(view, "openfreemap");- assert.deepEqual(result.points, [{id: "row-0", longitude: 0, latitude: 0, coordinateSystem: "wgs84"}]);- assert.deepEqual(result.skipped, {empty: 1, invalid: 2, unknown: 2, mismatch: 2, projection: 0});+ const result = getMapPoints(view);+ assert.deepEqual(result.points, [{id: "row-0", longitude: 0, latitude: 0}]);+ assert.deepEqual(result.skipped, {empty: 1, invalid: 2, projection: 0});assert.equal(JSON.stringify(view), before);- assert.equal(getMapPoints(view, "amap").points[0].id, "row-5");- assert.equal(getMapPoints(view, "tencent").points[0].id, "row-5");- assert.deepEqual(getMapPoints(view, "baidu").points.map(point => point.id), ["row-5", "row-6"]);});test("map preserves valid polar coordinates but counts unsupported projection separately", () => {const view = table([- {latitude: 90, longitude: 0, coordinateSystem: "wgs84"},- {latitude: -90, longitude: 0, coordinateSystem: "wgs84"},- {latitude: 85.0511287798066, longitude: 180, coordinateSystem: "wgs84"},+ {latitude: 90, longitude: 0},+ {latitude: -90, longitude: 0},+ {latitude: 85.0511287798066, longitude: 180},]);const original = JSON.stringify(view);- const result = getMapPoints(view, "openfreemap");+ const result = getMapPoints(view);assert.equal(result.skipped.projection, 2);assert.equal(result.skipped.invalid, 0);assert.equal(result.points.length, 1);@@ -49,21 +42,21 @@ test("map preserves valid polar coordinates but counts unsupported projection se});test("missing or changed location fields retain their saved identifiers and do not fall back", () => {- const view = table([{latitude: 0, longitude: 0, coordinateSystem: "wgs84"}]);+ const view = table([{latitude: 0, longitude: 0}]);view.map.locationKeyID = "removed";- assert.equal(getMapPoints(view, "openfreemap").missingField, true);+ assert.equal(getMapPoints(view).missingField, true);assert.equal(getMapSettings(view).locationKeyID, "removed");view.map.locationKeyID = "primary";- assert.equal(getMapPoints(view, "openfreemap").missingField, true);- assert.deepEqual(getMapSettings(view), {serviceID: "saved-service", locationKeyID: "primary", showRecordList: false});- assert.deepEqual(getMapSettings({} as IAVTable), {serviceID: "", locationKeyID: "", showRecordList: true});+ assert.equal(getMapPoints(view).missingField, true);+ assert.deepEqual(getMapSettings(view), {locationKeyID: "primary"});+ assert.deepEqual(getMapSettings({} as IAVTable), {locationKeyID: ""});});test("map does not silently truncate the loaded page before the explicit rendering limit", () => {const view = table(Array.from({length: AV_MAP_MAX_POINTS + 1}, () => ({- latitude: 0, longitude: 0, coordinateSystem: "wgs84" as const,+ latitude: 0, longitude: 0,})));- assert.equal(getMapPoints(view, "openfreemap").points.length, AV_MAP_MAX_POINTS + 1);+ assert.equal(getMapPoints(view).points.length, AV_MAP_MAX_POINTS + 1);});test("map document eligibility excludes public, history and non-HTTP contexts before host capability checks", () => {diff --git a/app/src/protyle/render/av/map/state.ts b/app/src/protyle/render/av/map/state.tsindex 15bc7bbcd4..3c56ce22f7 100644--- a/app/src/protyle/render/av/map/state.ts+++ b/app/src/protyle/render/av/map/state.ts@@ -1,17 +1,15 @@import {hasAVLocationCoordinates, validateAVLocation} from "../locationValue";-import type {AVMapPoint, AVMapProvider} from "./protocol";-import {isAVMapIdentifier, isAVMapProjectionSupported, supportsAVMapCoordinateSystem} from "./protocol";+import type {AVMapPoint} from "./protocol";+import {isAVMapIdentifier, isAVMapProjectionSupported} from "./protocol";export const getMapSettings = (view: IAVTable): IAVMapSettings => ({- serviceID: view.map?.serviceID || "",locationKeyID: view.map?.locationKeyID || "",- showRecordList: view.map?.showRecordList !== false,});-// 只使用选定字段的已加载行,缺失或不兼容的来源坐标不会被猜测或改写。-export const getMapPoints = (view: IAVTable, provider: AVMapProvider) => {+// 只使用选定字段的已加载行,WGS84 坐标不会被裁切或改写。+export const getMapPoints = (view: IAVTable) => {const points: AVMapPoint[] = [];- const skipped = {empty: 0, invalid: 0, unknown: 0, mismatch: 0, projection: 0};+ const skipped = {empty: 0, invalid: 0, projection: 0};const fieldID = getMapSettings(view).locationKeyID;const fieldIndex = view.columns.findIndex(column => column.id === fieldID && column.type === "location");if (fieldIndex < 0) {@@ -25,16 +23,11 @@ export const getMapPoints = (view: IAVTable, provider: AVMapProvider) => {skipped.empty++;} else if (!validateAVLocation(location) || !hasAVLocationCoordinates(location) || !isAVMapIdentifier(row.id) || used.has(row.id)) {skipped.invalid++;- } else if (!location.coordinateSystem || location.coordinateSystem === "unknown") {- skipped.unknown++;- } else if (!supportsAVMapCoordinateSystem(provider, location.coordinateSystem)) {- skipped.mismatch++;- } else if (!isAVMapProjectionSupported(provider, location.latitude)) {+ } else if (!isAVMapProjectionSupported(location.latitude)) {skipped.projection++;} else {used.add(row.id);- points.push({id: row.id, longitude: location.longitude, latitude: location.latitude,- coordinateSystem: location.coordinateSystem});+ points.push({id: row.id, longitude: location.longitude, latitude: location.latitude});}});return {points, skipped, missingField: false};diff --git a/app/src/protyle/render/av/map/wrapperEntry.test.ts b/app/src/protyle/render/av/map/wrapperEntry.test.tsindex d1f714e23b..454c884a98 100644--- a/app/src/protyle/render/av/map/wrapperEntry.test.ts+++ b/app/src/protyle/render/av/map/wrapperEntry.test.ts@@ -17,7 +17,7 @@ describe("trusted map navigation wrapper", () => {setAttribute: (key: string, value: string) => { attributes[key] = value; },contentWindow: {postMessage: (...args: any[]) => childMessages.push(args)}, remove() { removed++; }};const scope = {- location: {hash: `#${instanceID}:${nonce}`, search: "?provider=amap", protocol: "https:", origin},+ location: {hash: `#${instanceID}:${nonce}`, search: "?provider=openfreemap", protocol: "https:", origin},parent: {postMessage: (...args: any[]) => parentMessages.push(args)},document: {createElement: () => child, body: {appendChild() { appended++; }}},setTimeout() { return 1; }, clearTimeout() {},@@ -38,7 +38,7 @@ describe("trusted map navigation wrapper", () => {assert.equal(appended, 1);assert.equal(attributes.sandbox, "allow-scripts");assert.equal(child.credentialless, true);- assert.equal(child.src, `/stage/map/index.html?provider=amap#${instanceID}:${nonce}`);+ assert.equal(child.src, `/stage/map/index.html?provider=openfreemap#${instanceID}:${nonce}`);const port = {};const connect = {...fromParent, ports: [port], data: {...fromParent.data, type: "connect"}};onMessage(connect);diff --git a/app/src/protyle/util/transactionContract.ts b/app/src/protyle/util/transactionContract.tsindex 5f7e68e1f8..92a5574289 100644--- a/app/src/protyle/util/transactionContract.ts+++ b/app/src/protyle/util/transactionContract.ts@@ -41,7 +41,6 @@ const transactionActions: Record<IOperation["action"], true> = {"setAttrViewColIcon": true,"setAttrViewColDesc": true,"setAttrViewColAttributePanelVisibility": true,- "setAttrViewColLocationDefaultCoordinateSystem": true,"setAttrViewMap": true,"insertAttrViewBlock": true,"removeAttrViewBlock": true,diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex 8a31123d52..9d69416f8b 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -1490,7 +1490,7 @@ export const onTransaction = (protyle: IProtyle, operations: IOperation[], isUnd"replaceAttrViewBlock", "updateAttrViewColTemplate", "setAttrViewColPin", "addAttrViewView", "setAttrViewColIcon","removeAttrViewView", "setAttrViewViewName", "setAttrViewViewIcon", "duplicateAttrViewView", "duplicateAttrViewRow", "sortAttrViewView","updateAttrViewColRelation", "setAttrViewColRelationFilters", "setAttrViewPageSize", "updateAttrViewColRollup",- "setAttrViewColRollupFilters", "sortAttrViewKey", "setAttrViewColDesc", "setAttrViewColAttributePanelVisibility", "setAttrViewColLocationDefaultCoordinateSystem",+ "setAttrViewColRollupFilters", "sortAttrViewKey", "setAttrViewColDesc", "setAttrViewColAttributePanelVisibility","duplicateAttrViewKey", "setAttrViewViewDesc", "setAttrViewCoverFrom", "setAttrViewCoverFromAssetKeyID", "setAttrViewCardCoverPosition","setAttrViewBlockView", "setAttrViewBlockVisibleViews", "setAttrViewContextFilter", "setAttrViewCardSize", "setAttrViewCardWidth", "setAttrViewCardAspectRatio","setAttrViewConditionalColors", "setAttrViewCalendar", "setAttrViewMap", "setAttrViewCardAspectRatioValue", "setAttrViewCardLayout", "setAttrViewColFullRow", "hideAttrViewName", "setAttrViewShowIcon",diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.tsindex 17feb70c8a..eb086419e1 100644--- a/app/src/types/api/index.d.ts+++ b/app/src/types/api/index.d.ts@@ -322,7 +322,7 @@ export type AVGallery = { "cardAspectRatio": number; "cardAspectRatioValue": numexport type AVGalleryCard = { "conditionalColors"?: AVItemConditionalColors; "coverContent": string; "coverPosition"?: AVCardCoverPosition; "coverURL": string; "id": string; "values": Array<AVGalleryFieldValue | null> | null; };-export type AVGalleryField = { "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day" | "lunar"; "desc": string; "fullRow": boolean; "hidden": boolean; "icon": string; "id": string; "location"?: AVLocation; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "wrap": boolean; } | ({ "fullRow": boolean; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "location"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });+export type AVGalleryField = { "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day" | "lunar"; "desc": string; "fullRow": boolean; "hidden": boolean; "icon": string; "id": string; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "wrap": boolean; } | ({ "fullRow": boolean; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });export type AVGalleryFieldValue = { "id": string; "value": AVValue | null; "valueType": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; } | (Record<string, never> & { "id"?: never; "value"?: never; "valueType"?: never; });@@ -342,11 +342,11 @@ export type AVKanban = { "cardAspectRatio": number; "cardAspectRatioValue": numbexport type AVKanbanCard = { "conditionalColors"?: AVItemConditionalColors; "coverContent": string; "coverPosition"?: AVCardCoverPosition; "coverURL": string; "id": string; "values": Array<AVKanbanFieldValue | null> | null; };-export type AVKanbanField = { "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day" | "lunar"; "desc": string; "fullRow": boolean; "hidden": boolean; "icon": string; "id": string; "location"?: AVLocation; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "wrap": boolean; } | ({ "fullRow": boolean; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "location"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });+export type AVKanbanField = { "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day" | "lunar"; "desc": string; "fullRow": boolean; "hidden": boolean; "icon": string; "id": string; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "wrap": boolean; } | ({ "fullRow": boolean; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });export type AVKanbanFieldValue = { "id": string; "value": AVValue | null; "valueType": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; } | (Record<string, never> & { "id"?: never; "value"?: never; "valueType"?: never; });-export type AVKey = { "attributePanelVisibility"?: "" | "always" | "hide-empty" | "hide"; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day" | "lunar"; "desc": string; "icon": string; "id": string; "location"?: AVLocation; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; };+export type AVKey = { "attributePanelVisibility"?: "" | "always" | "hide-empty" | "hide"; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day" | "lunar"; "desc": string; "icon": string; "id": string; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; };export type AVKeyValues = { "key": AVKey | null; "values"?: Array<AVValue | null>; };@@ -362,11 +362,9 @@ export type AVLayoutMap = { "columns": Array<AVViewTableColumn | null> | null; "export type AVLayoutTable = { "columns": Array<AVViewTableColumn | null> | null; "filters"?: Array<AVViewFilter | null>; "id": string; "pageSize"?: number; "rowIds": Array<string> | null; "showIcon": boolean; "sorts"?: Array<AVViewSort | null>; "spec": number; "wrapField": boolean; } | ({ "columns": Array<AVViewTableColumn | null> | null; "rowIds": Array<string> | null; } & { "filters"?: never; "id"?: never; "pageSize"?: never; "showIcon"?: never; "sorts"?: never; "spec"?: never; "wrapField"?: never; });-export type AVLocation = { "defaultCoordinateSystem"?: "" | "unknown" | "wgs84" | "gcj02" | "bd09"; };+export type AVMapSettings = { "locationKeyID": string; };-export type AVMapSettings = { "locationKeyID": string; "serviceID": string; "showRecordList": boolean; };--export type AVMapSettingsInput = { "locationKeyID": string; "serviceID": string; "showRecordList": boolean; };+export type AVMapSettingsInput = { "locationKeyID": string; };export type AVNewItemFieldValue = { "mode": "static" | "currentTime"; "value"?: AVValue; };@@ -434,7 +432,7 @@ export type AVTable = { "calendar"?: AVCalendarSettings; "calendarRange"?: AVCalexport type AVTableCell = { "bgColor": string; "color": string; "id": string; "value": AVValue | null; "valueType": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; } | ({ "bgColor": string; "color": string; } & { "id"?: never; "value"?: never; "valueType"?: never; });-export type AVTableColumn = { "align": "" | "left" | "center" | "right"; "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day" | "lunar"; "desc": string; "hidden": boolean; "icon": string; "id": string; "location"?: AVLocation; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "pin": boolean; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "width": string; "wrap": boolean; } | ({ "align": "" | "left" | "center" | "right"; "pin": boolean; "width": string; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "location"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });+export type AVTableColumn = { "align": "" | "left" | "center" | "right"; "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day" | "lunar"; "desc": string; "hidden": boolean; "icon": string; "id": string; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "pin": boolean; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "width": string; "wrap": boolean; } | ({ "align": "" | "left" | "center" | "right"; "pin": boolean; "width": string; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });export type AVTableRow = { "cells": Array<AVTableCell | null> | null; "conditionalColors"?: AVItemConditionalColors; "id": string; };@@ -472,9 +470,9 @@ export type AVValueEmailInput = { "content"?: string | null; };export type AVValueInput = { "block"?: AVValueBlockInput | null; "blockID"?: string | null; "checkbox"?: AVValueCheckboxInput | null; "created"?: AVValueCreatedInput | null; "createdAt"?: number | null; "date"?: AVValueDateInput | null; "email"?: AVValueEmailInput | null; "hasRenderTemplate"?: boolean | null; "id"?: string | null; "isDetached"?: boolean | null; "keyID"?: string | null; "location"?: AVValueLocationInput | null; "mAsset"?: Array<AVValueAssetInput | null> | null; "mSelect"?: Array<AVValueSelectInput | null> | null; "number"?: AVValueNumberInput | null; "phone"?: AVValuePhoneInput | null; "relation"?: AVValueRelationInput | null; "renderedContent"?: string | null; "rollup"?: AVValueRollupInput | null; "template"?: AVValueTemplateInput | null; "text"?: AVValueTextInput | null; "type"?: "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVValueUpdatedInput | null; "updatedAt"?: number | null; "url"?: AVValueURLInput | null; };-export type AVValueLocation = { "coordinateSystem"?: "" | "unknown" | "wgs84" | "gcj02" | "bd09"; "latitude"?: number; "longitude"?: number; "name"?: string; "originalInput"?: string; };+export type AVValueLocation = { "latitude"?: number; "longitude"?: number; "name"?: string; "originalInput"?: string; };-export type AVValueLocationInput = { "coordinateSystem"?: "" | "unknown" | "wgs84" | "gcj02" | "bd09"; "latitude"?: number | null; "longitude"?: number | null; "name"?: string | null; "originalInput"?: string | null; };+export type AVValueLocationInput = { "latitude"?: number | null; "longitude"?: number | null; "name"?: string | null; "originalInput"?: string | null; };export type AVValueNumber = { "content": number; "format": string; "formattedContent": string; "isNotEmpty": boolean; };@@ -1400,17 +1398,7 @@ export type MCPOAuthStatus = { "clients": Array<MCPOAuthClient> | null; "enabledexport type MCPOAuthTokenRequestInput = { "client_id"?: string; "client_secret"?: string; "code"?: string; "code_verifier"?: string; "grant_type"?: string; "redirect_uri"?: string; "refresh_token"?: string; "resource"?: string; "scope"?: string; "token"?: string; "token_type_hint"?: string; };-export type MapConfig = { "revision": string; "services": Array<MapService | null> | null; };--export type MapRuntime = { "apiKey"?: string; "provider": "amap" | "tencent" | "baidu" | "openfreemap"; "securityCode"?: string; };--export type MapRuntimeRequestInput = { "serviceID": string; };--export type MapService = { "configured": boolean; "hasAPIKey": boolean; "hasSecurityCode": boolean; "id": string; "name": string; "provider": "amap" | "tencent" | "baidu" | "openfreemap"; };--export type MapServiceInputInput = { "apiKey"?: string; "id"?: string; "name": string; "provider": "amap" | "tencent" | "baidu" | "openfreemap"; "securityCode"?: string; };--export type MapSetConfRequestInput = { "expectedRevision": string; "services": Array<MapServiceInputInput>; };+export type MapRuntime = { "provider": "openfreemap"; };export type MarkdownHTMLRequestInput = { "markdown": string; "mode"?: string | null; };@@ -2200,7 +2188,7 @@ export type SystemAPITokenRequestInput = { "token": string; };export type SystemAccessAuthCodeRequestInput = { "accessAuthCode": string; };-export type SystemAppConf = { "accessAuthCode": string; "ai": SettingAI | null; "api": SystemAPI | null; "appearance": SettingAppearance | null; "bazaar": SettingBazaar | null; "cloudRegion": number; "cookieKey": string; "dataIndexState": number; "editor": SettingEditor | null; "export": SettingExport | null; "fileTree": SettingFileTree | null; "flashcard": SettingFlashcard | null; "graph": SystemGraph | null; "keymap": { [key: string]: JSONValue } | null; "lang": string; "langs": Array<SystemLang | null> | null; "logLevel": string; "map": MapConfig | null; "mcpOAuth": string; "notebookCrypto": SystemNotebookCrypto | null; "ocr": SettingOCR | null; "oidc": SystemOIDC | null; "onboarding": SystemOnboarding | null; "publish": SettingPublish | null; "readonly": boolean; "repo": SystemRepo | null; "search": SettingSearch | null; "secrets": SettingSecrets | null; "serverAddrs": Array<string> | null; "showChangelog": boolean; "snippet": SettingSnpt | null; "stat": SystemStat | null; "sync": SystemSync | null; "system": SystemSystem | null; "tag": SystemTag | null; "uiLayout": { [key: string]: JSONValue } | null; "userData": string; "variables": SettingVariables | null; };+export type SystemAppConf = { "accessAuthCode": string; "ai": SettingAI | null; "api": SystemAPI | null; "appearance": SettingAppearance | null; "bazaar": SettingBazaar | null; "cloudRegion": number; "cookieKey": string; "dataIndexState": number; "editor": SettingEditor | null; "export": SettingExport | null; "fileTree": SettingFileTree | null; "flashcard": SettingFlashcard | null; "graph": SystemGraph | null; "keymap": { [key: string]: JSONValue } | null; "lang": string; "langs": Array<SystemLang | null> | null; "logLevel": string; "mcpOAuth": string; "notebookCrypto": SystemNotebookCrypto | null; "ocr": SettingOCR | null; "oidc": SystemOIDC | null; "onboarding": SystemOnboarding | null; "publish": SettingPublish | null; "readonly": boolean; "repo": SystemRepo | null; "search": SettingSearch | null; "secrets": SettingSecrets | null; "serverAddrs": Array<string> | null; "showChangelog": boolean; "snippet": SettingSnpt | null; "stat": SystemStat | null; "sync": SystemSync | null; "system": SystemSystem | null; "tag": SystemTag | null; "uiLayout": { [key: string]: JSONValue } | null; "userData": string; "variables": SettingVariables | null; };export type SystemAppearanceData = { "appearance": SettingAppearance | null; };@@ -2390,9 +2378,9 @@ export type TransactionListConversionResultInput = { "focusID": string; "removedexport type TransactionNewItemTemplatesInput = { "defaultTemplateID"?: string | null; "templates"?: Array<AVNewItemTemplateInput | null> | null; };-export type TransactionOperation = { "action": "updateAttrs"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionAttributeChangeInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "create"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "restoreCreatedDoc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeCreatedDoc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "update"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "insert"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "delete"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": BlockDeleteDataInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "move"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "swapBlockRef"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionBlockSwapInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": Array<string> | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "convertList"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionListConversionInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": TransactionListConversionResult | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "moveOutlineHeading"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "append"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "appendInsert"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "prependInsert"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "foldHeading"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "unfoldHeading"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrs"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "doUpdateUpdated"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "addFlashcards"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeFlashcards"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewName"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewNewItemTemplates"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionNewItemTemplatesInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewAutomations"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVAutomationConfigInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewConditionalColors"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVConditionalColorRuleInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewFilters"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVViewFilterInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewContextFilter"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColRelationFilters"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVViewFilterInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColRollupFilters"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVViewFilterInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewSorts"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVViewSortInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewPageSize"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColWidth"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColsWidth"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Record<string, string> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColAlign"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColWrap"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColHidden"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColPin"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColIcon"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColDesc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColAttributePanelVisibility"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColLocationDefaultCoordinateSystem"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "insertAttrViewBlock"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": TransactionInsertedItems | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewBlock"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "addAttrViewCol"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewCol"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewCol"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewRow"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVRowOrderChangeInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewCol"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewKey"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewBinding"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewCell"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVValueInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewCells"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColOptions"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVSelectOptionInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewColOption"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColOption"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionOptionChangeInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColOptionDesc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionOptionDescriptionInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCustomColors"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionCustomColorsInput | Array<AVAttributeViewCustomColorInput | null> | null | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColCalc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVFieldCalcInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColNumberFormat"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColDateFormat"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "replaceAttrViewBlock"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": TransactionReplacedItem | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColTemplate"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "addAttrViewView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": string | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewViewName"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewViewIcon"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewViewDesc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "duplicateAttrViewView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "duplicateAttrViewRow"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColRelation"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColRollup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionRollupInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "hideAttrViewName"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColDateFillCreated"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColDateFillSpecificTime"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCreatedIncludeTime"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewUpdatedIncludeTime"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "duplicateAttrViewKey"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCoverFrom"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCoverFromAssetKeyID"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardCoverPosition"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionCardCoverPositionInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardSize"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardWidth"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewMap"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVMapSettingsInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCalendar"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVCalendarSettingsInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardLayout"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColFullRow"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewFitImage"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewDisplayFieldName"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewDisplayEmptyFields"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewFillColBackgroundColor"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewShowIcon"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewWrapField"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "changeAttrViewLayout"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewBlockView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewBlockVisibleViews"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardAspectRatio"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardAspectRatioValue"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVViewGroupInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "hideAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "hideAttrViewAllGroups"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "foldAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "foldAttrViewGroups"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Record<string, boolean> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "syncAttrViewTableColWidth"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": UnknownTransactionAction; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": JSONValue; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": JSONValue; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; };+export type TransactionOperation = { "action": "updateAttrs"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionAttributeChangeInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "create"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "restoreCreatedDoc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeCreatedDoc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "update"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "insert"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "delete"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": BlockDeleteDataInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "move"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "swapBlockRef"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionBlockSwapInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": Array<string> | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "convertList"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionListConversionInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": TransactionListConversionResult | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "moveOutlineHeading"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "append"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "appendInsert"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "prependInsert"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "foldHeading"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "unfoldHeading"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrs"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null | string | Array<string>; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "doUpdateUpdated"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "addFlashcards"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeFlashcards"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewName"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewNewItemTemplates"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionNewItemTemplatesInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewAutomations"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVAutomationConfigInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewConditionalColors"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVConditionalColorRuleInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewFilters"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVViewFilterInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewContextFilter"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColRelationFilters"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVViewFilterInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColRollupFilters"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVViewFilterInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewSorts"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVViewSortInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewPageSize"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColWidth"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColsWidth"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Record<string, string> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColAlign"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColWrap"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColHidden"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColPin"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColIcon"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColDesc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColAttributePanelVisibility"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "insertAttrViewBlock"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": TransactionInsertedItems | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewBlock"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "addAttrViewCol"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewCol"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewCol"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewRow"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVRowOrderChangeInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewCol"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewKey"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewBinding"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewCell"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVValueInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewCells"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColOptions"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Array<AVSelectOptionInput | null> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewColOption"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColOption"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionOptionChangeInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColOptionDesc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionOptionDescriptionInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCustomColors"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionCustomColorsInput | Array<AVAttributeViewCustomColorInput | null> | null | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColCalc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVFieldCalcInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColNumberFormat"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColDateFormat"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "replaceAttrViewBlock"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": TransactionReplacedItem | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColTemplate"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "addAttrViewView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": string | null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewViewName"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewViewIcon"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewViewDesc"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "duplicateAttrViewView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "duplicateAttrViewRow"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": string | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColRelation"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "updateAttrViewColRollup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionRollupInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "hideAttrViewName"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColDateFillCreated"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColDateFillSpecificTime"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCreatedIncludeTime"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewUpdatedIncludeTime"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "duplicateAttrViewKey"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCoverFrom"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCoverFromAssetKeyID"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardCoverPosition"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": TransactionCardCoverPositionInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardSize"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardWidth"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewMap"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVMapSettingsInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCalendar"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVCalendarSettingsInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardLayout"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewColFullRow"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewFitImage"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewDisplayFieldName"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewDisplayEmptyFields"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewFillColBackgroundColor"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewShowIcon"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewWrapField"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "changeAttrViewLayout"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewBlockView"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewBlockVisibleViews"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardAspectRatio"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewCardAspectRatioValue"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "setAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": AVViewGroupInput | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "hideAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": number | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "hideAttrViewAllGroups"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "foldAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": boolean | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "foldAttrViewGroups"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": Record<string, boolean> | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "syncAttrViewTableColWidth"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "removeAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": "sortAttrViewGroup"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; } | { "action": UnknownTransactionAction; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdate | null>; "context": TransactionContext; "data": JSONValue; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": JSONValue; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": Array<TransactionSourceFieldsInput | null> | null; "targetGroupID": string; "type": "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID": string; "viewIDs"?: Array<string>; };-export type TransactionOperationRequest = { "action": "updateAttrs"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionAttributeChangeInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "create"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "restoreCreatedDoc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeCreatedDoc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "update"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "insert"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "delete"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: BlockDeleteDataInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "move"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "swapBlockRef"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionBlockSwapInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: Array<string> | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "convertList"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionListConversionInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: TransactionListConversionResultInput | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "moveOutlineHeading"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "append"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "appendInsert"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "prependInsert"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "foldHeading"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "unfoldHeading"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrs"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "doUpdateUpdated"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "addFlashcards"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeFlashcards"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewName"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewNewItemTemplates"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionNewItemTemplatesInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewAutomations"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVAutomationConfigInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewConditionalColors"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVConditionalColorRuleInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewFilters"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVViewFilterInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewContextFilter"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColRelationFilters"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVViewFilterInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColRollupFilters"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVViewFilterInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewSorts"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVViewSortInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewPageSize"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColWidth"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColsWidth"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Record<string, string> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColAlign"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColWrap"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColHidden"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColPin"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColIcon"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColDesc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColAttributePanelVisibility"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColLocationDefaultCoordinateSystem"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "insertAttrViewBlock"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: TransactionInsertedItemsInput | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewBlock"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "addAttrViewCol"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewCol"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewCol"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewRow"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVRowOrderChangeInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewCol"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewKey"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewBinding"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewCell"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVValueInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewCells"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColOptions"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVSelectOptionInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewColOption"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColOption"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionOptionChangeInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColOptionDesc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionOptionDescriptionInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCustomColors"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionCustomColorsInput | Array<AVAttributeViewCustomColorInput | null> | null | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColCalc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVFieldCalcInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColNumberFormat"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColDateFormat"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "replaceAttrViewBlock"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: TransactionReplacedItemInput | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColTemplate"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "addAttrViewView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: string | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewViewName"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewViewIcon"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewViewDesc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "duplicateAttrViewView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "duplicateAttrViewRow"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColRelation"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColRollup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionRollupInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "hideAttrViewName"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColDateFillCreated"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColDateFillSpecificTime"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCreatedIncludeTime"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewUpdatedIncludeTime"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "duplicateAttrViewKey"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCoverFrom"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCoverFromAssetKeyID"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardCoverPosition"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionCardCoverPositionInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardSize"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardWidth"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewMap"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVMapSettingsInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCalendar"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVCalendarSettingsInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardLayout"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColFullRow"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewFitImage"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewDisplayFieldName"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewDisplayEmptyFields"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewFillColBackgroundColor"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewShowIcon"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewWrapField"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "changeAttrViewLayout"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewBlockView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewBlockVisibleViews"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardAspectRatio"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardAspectRatioValue"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVViewGroupInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "hideAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "hideAttrViewAllGroups"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "foldAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "foldAttrViewGroups"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Record<string, boolean> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "syncAttrViewTableColWidth"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": UnknownTransactionAction; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: JSONValue; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: JSONValue; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; };+export type TransactionOperationRequest = { "action": "updateAttrs"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionAttributeChangeInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "create"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "restoreCreatedDoc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeCreatedDoc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "update"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "insert"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "delete"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: BlockDeleteDataInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "move"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "swapBlockRef"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionBlockSwapInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: Array<string> | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "convertList"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionListConversionInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: TransactionListConversionResultInput | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "moveOutlineHeading"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "append"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "appendInsert"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "prependInsert"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "foldHeading"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "unfoldHeading"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrs"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null | string | Array<string>; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "doUpdateUpdated"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "addFlashcards"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeFlashcards"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewName"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewNewItemTemplates"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionNewItemTemplatesInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewAutomations"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVAutomationConfigInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewConditionalColors"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVConditionalColorRuleInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewFilters"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVViewFilterInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewContextFilter"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColRelationFilters"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVViewFilterInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColRollupFilters"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVViewFilterInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewSorts"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVViewSortInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewPageSize"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColWidth"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColsWidth"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Record<string, string> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColAlign"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColWrap"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColHidden"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColPin"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColIcon"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColDesc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColAttributePanelVisibility"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "insertAttrViewBlock"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: TransactionInsertedItemsInput | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewBlock"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "addAttrViewCol"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewCol"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewCol"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewRow"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVRowOrderChangeInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewCol"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewKey"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewBinding"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewCell"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVValueInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewCells"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColOptions"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Array<AVSelectOptionInput | null> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewColOption"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColOption"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionOptionChangeInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColOptionDesc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionOptionDescriptionInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCustomColors"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionCustomColorsInput | Array<AVAttributeViewCustomColorInput | null> | null | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColCalc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVFieldCalcInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColNumberFormat"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColDateFormat"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "replaceAttrViewBlock"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: TransactionReplacedItemInput | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColTemplate"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "addAttrViewView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: string | null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewViewName"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewViewIcon"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewViewDesc"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "duplicateAttrViewView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "duplicateAttrViewRow"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: string | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColRelation"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "updateAttrViewColRollup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionRollupInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "hideAttrViewName"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColDateFillCreated"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColDateFillSpecificTime"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCreatedIncludeTime"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewUpdatedIncludeTime"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "duplicateAttrViewKey"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCoverFrom"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCoverFromAssetKeyID"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardCoverPosition"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: TransactionCardCoverPositionInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardSize"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardWidth"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewMap"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVMapSettingsInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCalendar"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVCalendarSettingsInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardLayout"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewColFullRow"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewFitImage"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewDisplayFieldName"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewDisplayEmptyFields"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewFillColBackgroundColor"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewShowIcon"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewWrapField"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "changeAttrViewLayout"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewBlockView"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewBlockVisibleViews"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardAspectRatio"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewCardAspectRatioValue"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "setAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: AVViewGroupInput | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "hideAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: number | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "hideAttrViewAllGroups"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "foldAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: boolean | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "foldAttrViewGroups"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: Record<string, boolean> | null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "syncAttrViewTableColWidth"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "removeAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": "sortAttrViewGroup"; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: null; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: null; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; } | { "action": UnknownTransactionAction; "avID"?: string | null; "backRelationKeyID"?: string | null; "blockID"?: string | null; "blockIDs"?: Array<string> | null; "cellUpdates"?: Array<TransactionCellUpdateInput | null> | null; "context"?: TransactionContext | null; "data"?: JSONValue; "deckID"?: string | null; "format"?: string | null; "groupID"?: string | null; "id"?: string | null; "ignoreDefaultFill"?: boolean | null; "isDetached"?: boolean | null; "isTwoWay"?: boolean | null; "keyID"?: string | null; "layout"?: string | null; "name"?: string | null; "nextID"?: string | null; "parentID"?: string | null; "previousID"?: string | null; "removeDest"?: boolean | null; "retData"?: JSONValue; "rootID"?: string | null; "rowID"?: string | null; "srcIDs"?: Array<string> | null; "srcs"?: Array<TransactionSourceFieldsInput | null> | null; "targetGroupID"?: string | null; "type"?: "" | "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "location" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "viewID"?: string | null; "viewIDs"?: Array<string> | null; };export type TransactionOptionChangeInput = { "newColor": string; "newDesc": string; "newName": string; "oldColor"?: string | null; "oldName": string; };@@ -5546,27 +5534,17 @@ export interface APIPOSTRoutes {/** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */authorization?: readonly ["authenticated","admin","writable"];};- "/api/map/getConf": {- request: EmptyRequestInput;- response: { "code": 0; "data": MapConfig | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };- body: "none";- /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */- authorization?: readonly ["authenticated","admin"];- };+ /**+ * 返回内置 OpenFreeMap 标识,不读取或返回凭据,无需服务 ID。+ * 仅管理员可用,响应禁止缓存;认证 bypass 模式返回 mapAuthenticationBypass。+ */"/api/map/getRuntime": {- request: MapRuntimeRequestInput;+ request: EmptyRequestInput;response: { "code": 0; "data": MapRuntime | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };- body: "json";+ body: "none";/** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */authorization?: readonly ["authenticated","admin"];};- "/api/map/setConf": {- request: MapSetConfRequestInput;- response: { "code": 0; "data": MapConfig | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };- body: "json";- /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */- authorization?: readonly ["authenticated","admin","writable"];- };/*** 接收 name 和精确匹配的 redirectURI,返回客户端 id 及仅显示一次的 secret。* 要求管理员权限并禁止只读模式;OAuth 令牌只用于 /mcp,不解锁加密笔记本。diff --git a/app/src/types/config.d.ts b/app/src/types/config.d.tsindex 92ac5674cc..707044ea6b 100644--- a/app/src/types/config.d.ts+++ b/app/src/types/config.d.ts@@ -34,8 +34,6 @@ declare namespace Config {* reasoningEffort 独立控制手动和自动 AI OCR,空字符串沿用模型默认。*/ocr: import("./api").SettingOCR;- /** 当前设备的地图服务摘要,不包含密钥;视图仅保存服务 ID。 */- map: import("./api").MapConfig;api: IAPI;appearance: IAppearance;bazaar: IBazaar;diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 5bbefb9342..4da1740273 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -1293,15 +1293,12 @@ interface IAVCalendarRange {// 表格、列表和日历共用行列结构,布局由 viewType 区分。interface IAVMapSettings {- /** 设备本地地图服务的稳定引用;缺失时保留,不自动替换。 */- serviceID: string;/** 位置字段引用;缺失或类型变化时保留,不自动改绑。 */locationKeyID: string;- showRecordList: boolean;}interface IAVTable extends IAVView {- /** 地图只渲染当前加载页中匹配服务坐标系的原始坐标。 */+ /** 地图只渲染当前加载页中的 WGS84 坐标。 */map?: IAVMapSettings;mapMarkerScope?: "page";/** 仅日历布局返回的持久化字段设置。 */@@ -1415,8 +1412,6 @@ interface IAVColumn {type?: TAVCol,numberFormat?: string,dateFormat?: TAVDateFormat,- /** 仅用于新录入,不覆盖已有位置的坐标系。 */- location?: {defaultCoordinateSystem?: IAVCellLocationValue["coordinateSystem"]},template?: string,renderTemplate?: string,calc?: IAVCalc,@@ -1528,14 +1523,13 @@ interface IAVCellValue {}/**- * 坐标按原坐标系保存,不自动转换;文本顺序为纬度、经度。未知坐标系不能当作 WGS84 使用。+ * 坐标统一使用 WGS84,不自动转换;文本顺序为纬度、经度。* 位置字段的文本筛选条件使用 IAVCellValue.text.content,不把查询词解析成坐标。*/interface IAVCellLocationValue {name?: string;latitude?: number | null;longitude?: number | null;- coordinateSystem?: "" | "unknown" | "wgs84" | "gcj02" | "bd09";/** 原始坐标输入仅作为来源信息,不参与判空、筛选和排序。 */originalInput?: string;}diff --git a/app/tests/settingsTabs.test.js b/app/tests/settingsTabs.test.jsindex a76ef5cc21..e9106acdfc 100644--- a/app/tests/settingsTabs.test.js+++ b/app/tests/settingsTabs.test.js@@ -59,7 +59,7 @@ for (const mobile of [false, true]) {const shells = exports.getSettingTabDefs();assert.deepEqual(Array.from(shells, shell => shell.id), ["editor", "file", "appearance", "bazaar", "flashcard", "ai", "secretsVariables", "assets",- "ocr", "map", "export", "search", ...(mobile ? [] : ["keymap"]), "sync", "access", "app", "about",+ "ocr", "export", "search", ...(mobile ? [] : ["keymap"]), "sync", "access", "app", "about",]);assert.equal(exports.getSettingTab("appearance"), appearance);assert.equal(exports.getSettingTabDefs(), shells);diff --git a/docs/API.ja.md b/docs/API.ja.mdindex 62e7f1e8ff..85e985f578 100644--- a/docs/API.ja.md+++ b/docs/API.ja.md@@ -2343,16 +2343,14 @@ if (response.code === 0 && response.data) {| `url` | `{"url": {"content": "https://siyuan.com"}}` || `email` | `{"email": {"content": "[email protected]"}}` || `phone` | `{"phone": {"content": "1234567890"}}` |-| `location` | `{"location":{"name":"Home","latitude":0,"longitude":0,"coordinateSystem":"unknown","originalInput":"0, 0"}}` |+| `location` | `{"location":{"name":"Home","latitude":0,"longitude":0,"originalInput":"0, 0"}}` || `checkbox` | `{"checkbox": {"checked": true}}` |> ⚠️ `itemID` は**アイテム ID**、つまり[レンダリング](#レンダリング)が返すアイテムの `id` です。表形式では `rows[].id`、ギャラリーとカンバンでは `cards[].id` であり、グループ化が有効な場合は `groups[]` 内の対応するビューインスタンスにあります。また、主キー値の `value.blockID` とも同じです。紐づくアイテムの場合、紐づくブロック ID は主キー値の `value.block.id` にあります。両者は異なる概念であり、同一であると仮定してはいけません。誤った ID を渡すと、値はレンダリングされたセルに現れない孤立データとして保存されます。リッチテキストでは、`text.rich.content` が正規の Kramdown ソースです。カーネルはサポート対象の構造を検証して `text.content` のプレーンテキスト表現を生成するため、呼び出し側が指定したプレーンテキスト表現は無視されます。既存の API クライアントとの互換性を保つため、`text.rich` を省略した場合、`text.content` が変わっていなければ保存済みのリッチテキストを維持し、変わっていればプレーンテキストで置き換えます。プレーンテキスト表現が同じ場合でも、`"rich": null` を送信すると書式を明示的に削除できます。リッチテキストを含むデータベースはストレージ仕様 9 を使用するため、それより前のデータベース仕様だけをサポートするカーネルでは開けません。-`location` の `name` は省略できます。`latitude` と `longitude` は両方とも省略または null にするか、それぞれ [-90, 90] と [-180, 180] の範囲内の有限数値を指定します。ゼロは有効な座標です。`coordinateSystem` は `unknown`、`wgs84`、`gcj02`、`bd09` に対応し、省略または空の場合は不明として扱います。座標は変換せずに保存します。`originalInput` は入力元のテキストを保持し、フィルターと並べ替えには使用しません。更新時に省略したメンバーは既存の値を保持します。位置を消去するには `{"location":null}` を送信するか、名前を空にして両方の座標を null にします。座標または有効な座標系が変わると、省略された `originalInput` は自動的に消去されます。明示的に指定した入力元のテキストは保持されます。テキストフィルターは `{"type":"location","text":{"content":"検索語"}}` を使用し、名前、座標、座標系を照合します。位置フィールドはデータベースのストレージ仕様 11 を使用するため、古いカーネルでは開けません。位置フィールドを使用しないデータベースの仕様は変わりません。--フィールドの任意の `location.defaultCoordinateSystem` 設定は、新しい手動入力にのみ既定の座標系を提供します。保存済みの各位置は `unknown` を含む独自の座標系を保持し、設定の変更で既存、コピー、インポートされた値は書き換わりません。API 書き込みで値の座標系を省略した場合も不明を意味し、入力元と無関係な可能性があるフィールドの既定値は継承しません。+`location` の `name` は省略できます。`latitude` と `longitude` は両方とも省略または null にするか、それぞれ [-90, 90] と [-180, 180] の範囲内の有限数値を指定します。ゼロは有効な座標です。すべての座標は暗黙的に WGS84 として扱い、変換せずに保存します。位置の値に座標系プロパティを明示的に指定すると拒否されます。フィールドの既定座標系設定はありません。`originalInput` は入力元のテキストを保持し、フィルターと並べ替えには使用しません。更新時に省略したメンバーは既存の値を保持します。位置を消去するには `{"location":null}` を送信するか、名前を空にして両方の座標を null にします。座標が変わると、省略された `originalInput` は自動的に消去されます。明示的に指定した入力元のテキストは保持されます。テキストフィルターは `{"type":"location","text":{"content":"検索語"}}` を使用し、名前と座標を照合します。位置フィールドはデータベースのストレージ仕様 13 を使用するため、古いカーネルでは開けません。位置フィールドを使用しないデータベースの仕様は変わりません。* `/api/av/setAttributeViewBlockAttr`* パラメータdiff --git a/docs/API.md b/docs/API.mdindex f905b3a546..34dcdbe847 100644--- a/docs/API.md+++ b/docs/API.md@@ -2353,7 +2353,7 @@ Updates a single cell (one field of one row). This is the primary write endpoint| `url` | `{"url": {"content": "https://siyuan.com"}}` || `email` | `{"email": {"content": "[email protected]"}}` || `phone` | `{"phone": {"content": "1234567890"}}` |-| `location` | `{"location":{"name":"Home","latitude":0,"longitude":0,"coordinateSystem":"unknown","originalInput":"0, 0"}}` |+| `location` | `{"location":{"name":"Home","latitude":0,"longitude":0,"originalInput":"0, 0"}}` || `mAsset` | `{"mAsset": [{"type": "image", "name": "", "content": "https://example.com/image"}]}` || `checkbox` | `{"checkbox": {"checked": true}}` |@@ -2363,9 +2363,7 @@ For `mAsset`, each item uses `type: "image"` to render an image or `type: "file"For rich text, `text.rich.content` is the authoritative Kramdown source. The kernel validates its supported structure and derives `text.content` as the plain-text projection; a caller-provided plain-text projection is ignored. For compatibility with existing API clients, omitting `text.rich` preserves the stored rich-text payload when `text.content` is unchanged, but replaces it with plain text when `text.content` changes. Send `"rich": null` to explicitly remove rich formatting even when the plain-text projection is unchanged. Attribute views containing rich text use storage spec 9 and cannot be opened by kernels that only support earlier attribute-view specs.-For `location`, `name` is optional. `latitude` and `longitude` must both be absent/null or both be finite numbers in [-90, 90] and [-180, 180], respectively; zero is valid. `coordinateSystem` is `unknown`, `wgs84`, `gcj02`, or `bd09`, with missing/empty values treated as unknown. Coordinates are stored without conversion. `originalInput` retains source text and is excluded from filtering and sorting. Omitted update members preserve existing values; to clear a location send `{"location":null}`, or explicitly clear the name and set both coordinates to null. When coordinates or their effective system change, omitted `originalInput` is cleared automatically; an explicitly supplied source is retained. Text filters use `{"type":"location","text":{"content":"query"}}` and match the name, coordinates, and system. Location fields use attribute-view storage spec 11; older kernels cannot open them. Unrelated databases retain their existing storage spec.--The key’s optional `location.defaultCoordinateSystem` setting supplies a default only for new manual input. Each stored value retains its own system, including `unknown`; changing the setting does not rewrite existing, copied, or imported values. API writes that omit the value’s coordinate system still mean unknown, rather than inheriting a potentially unrelated field default.+For `location`, `name` is optional. `latitude` and `longitude` must both be absent/null or both be finite numbers in [-90, 90] and [-180, 180], respectively; zero is valid. All coordinates implicitly use WGS84 and are stored without conversion. Explicit coordinate-system properties on location values are rejected; field-level coordinate-system settings are not provided. `originalInput` retains source text and is excluded from filtering and sorting. Omitted update members preserve existing values; to clear a location send `{"location":null}`, or explicitly clear the name and set both coordinates to null. When coordinates change, omitted `originalInput` is cleared automatically; an explicitly supplied source is retained. Text filters use `{"type":"location","text":{"content":"query"}}` and match the name and coordinates. Location fields use attribute-view storage spec 13; older kernels cannot open them. Unrelated databases retain their existing storage spec.* `/api/av/setAttributeViewBlockAttr`* Parametersdiff --git a/docs/API.zh-CN.md b/docs/API.zh-CN.mdindex 67f18b76c5..2efe556884 100644--- a/docs/API.zh-CN.md+++ b/docs/API.zh-CN.md@@ -2349,16 +2349,14 @@ if (response.code === 0 && response.data) {| `url` | `{"url": {"content": "https://siyuan.com"}}` || `email` | `{"email": {"content": "[email protected]"}}` || `phone` | `{"phone": {"content": "1234567890"}}` |-| `location` | `{"location":{"name":"Home","latitude":0,"longitude":0,"coordinateSystem":"unknown","originalInput":"0, 0"}}` |+| `location` | `{"location":{"name":"Home","latitude":0,"longitude":0,"originalInput":"0, 0"}}` || `checkbox` | `{"checkbox": {"checked": true}}` |> ⚠️ `itemID` 是**条目 ID**,即[渲染](#渲染)返回的条目 `id`:表格和列表为 `rows[].id`,卡片和看板为 `cards[].id`,启用分组时位于 `groups[]` 的对应视图实例中。它也等于主键值的 `value.blockID`。对于绑定条目,绑定块 ID 位于主键值的 `value.block.id`;二者是不同概念,不能假设相等。传入错误的 ID 会把值存为孤儿数据,不会出现在渲染后的单元格中。对于富文本,`text.rich.content` 是权威的 Kramdown 源。内核会校验其受支持的结构并派生 `text.content` 纯文本投影;调用方提供的纯文本投影会被忽略。为兼容现有 API 客户端,省略 `text.rich` 时,如果 `text.content` 未改变则保留已存储的富文本载荷,如果 `text.content` 改变则以纯文本替换。即使纯文本投影未改变,也可以发送 `"rich": null` 明确移除富文本格式。包含富文本的数据库使用存储规范 9,无法由仅支持更早数据库规范的内核打开。-`location` 的 `name` 可选。`latitude` 和 `longitude` 必须同时缺省或为 null,或者同时为有限数值,范围分别为 [-90, 90] 和 [-180, 180];零是有效坐标。`coordinateSystem` 支持 `unknown`、`wgs84`、`gcj02` 和 `bd09`,省略或空值按未知处理。坐标不自动转换。`originalInput` 保留来源文本,不参与筛选和排序。更新时省略成员会保留已有值;清空位置可发送 `{"location":null}`,或显式清空名称并将两个坐标都设为 null。坐标或有效坐标系变化时,省略的 `originalInput` 会自动清空;显式提供的来源文本会被保留。文本筛选使用 `{"type":"location","text":{"content":"查询词"}}`,匹配名称、坐标及坐标系。位置字段使用数据库存储版本 11,旧版内核无法打开;未使用位置字段的数据库保留原有存储版本。--字段可选的 `location.defaultCoordinateSystem` 设置仅为新的手动录入提供默认坐标系。每条已存位置保留各自的坐标系,包括 `unknown`;更改设置不会重写已有、复制或导入的值。API 写入省略值的坐标系时仍表示未知,不继承可能与来源无关的字段默认值。+`location` 的 `name` 可选。`latitude` 和 `longitude` 必须同时缺省或为 null,或者同时为有限数值,范围分别为 [-90, 90] 和 [-180, 180];零是有效坐标。所有坐标隐式使用 WGS84,保存时不自动转换。位置值不接受显式坐标系属性,字段不提供默认坐标系设置。`originalInput` 保留来源文本,不参与筛选和排序。更新时省略成员会保留已有值;清空位置可发送 `{"location":null}`,或显式清空名称并将两个坐标都设为 null。坐标变化时,省略的 `originalInput` 会自动清空;显式提供的来源文本会被保留。文本筛选使用 `{"type":"location","text":{"content":"查询词"}}`,匹配名称和坐标。位置字段使用数据库存储版本 13,旧版内核无法打开;未使用位置字段的数据库保留原有存储版本。* `/api/av/setAttributeViewBlockAttr`* 参数diff --git a/kernel/api/av_contract_map.go b/kernel/api/av_contract_map.goindex 838adcfd74..542a2135ed 100644--- a/kernel/api/av_contract_map.go+++ b/kernel/api/av_contract_map.go@@ -9,8 +9,7 @@ func toContractAVMapSettings(value *av.MapSettings) *apicontract.AVMapSettings {if value == nil {return nil}- return &apicontract.AVMapSettings{ServiceID: value.ServiceID, LocationKeyID: value.LocationKeyID,- ShowRecordList: value.ShowRecordList}+ return &apicontract.AVMapSettings{LocationKeyID: value.LocationKeyID}}func toContractAVLayoutMap(value *av.LayoutMap) *apicontract.AVLayoutMap {diff --git a/kernel/api/av_contract_mapping.go b/kernel/api/av_contract_mapping.goindex aeb88d9d2b..3ec26b67df 100644--- a/kernel/api/av_contract_mapping.go+++ b/kernel/api/av_contract_mapping.go@@ -641,7 +641,6 @@ func toContractAVKey(value *av.Key) *apicontract.AVKey {Relation: toContractAVRelation(value.Relation),Rollup: toContractAVRollup(value.Rollup),Date: toContractAVDate(value.Date),- Location: toContractAVLocation(value.Location),Created: toContractAVCreated(value.Created),Updated: toContractAVUpdated(value.Updated),}@@ -764,7 +763,6 @@ func toContractAVBaseInstanceField(value *av.BaseInstanceField) *apicontract.AVBRelation: toContractAVRelation(value.Relation),Rollup: toContractAVRollup(value.Rollup),Date: toContractAVDate(value.Date),- Location: toContractAVLocation(value.Location),Created: toContractAVCreated(value.Created),Updated: toContractAVUpdated(value.Updated),}@@ -1360,7 +1358,7 @@ func toContractAVValueLocation(value *av.ValueLocation) *apicontract.AVValueLoca}return &apicontract.AVValueLocation{Name: value.Name, Latitude: value.Latitude, Longitude: value.Longitude,- CoordinateSystem: value.CoordinateSystem, OriginalInput: value.OriginalInput,+ OriginalInput: value.OriginalInput,}}@@ -1370,13 +1368,6 @@ func fromContractAVValueLocation(value *apicontract.AVValueLocation) *av.ValueLo}return &av.ValueLocation{Name: value.Name, Latitude: value.Latitude, Longitude: value.Longitude,- CoordinateSystem: value.CoordinateSystem, OriginalInput: value.OriginalInput,+ OriginalInput: value.OriginalInput,}}--func toContractAVLocation(value *av.Location) *apicontract.AVLocation {- if value == nil {- return nil- }- return &apicontract.AVLocation{DefaultCoordinateSystem: value.DefaultCoordinateSystem}-}diff --git a/kernel/api/contract_av_location_mapping_test.go b/kernel/api/contract_av_location_mapping_test.goindex 3925c03275..3467ae13b1 100644--- a/kernel/api/contract_av_location_mapping_test.go+++ b/kernel/api/contract_av_location_mapping_test.go@@ -10,8 +10,8 @@ func TestAVContractLocationTransportMapping(t *testing.T) {zero, longitude := 0.0, 102.42for _, location := range []*av.ValueLocation{nil, {}, {Name: "Office"}, {Name: "Office", Latitude: &zero, Longitude: &longitude,- CoordinateSystem: "gcj02", OriginalInput: "(102.42,0)",- }, {Latitude: &zero, Longitude: &zero, CoordinateSystem: "unknown"}} {+ OriginalInput: "(102.42,0)",+ }, {Latitude: &zero, Longitude: &zero}} {value := &av.Value{ID: "value", KeyID: "location", BlockID: "item", Type: av.KeyTypeLocation, Location: location}t.Run(value.String(false), func(t *testing.T) {assertAVContractJSONEqual(t, value, toContractAVValue(value))@@ -29,13 +29,12 @@ func TestAVContractLocationTransportMapping(t *testing.T) {func TestAVContractLocationFieldAndRenderMapping(t *testing.T) {zero, longitude := 0.0, 102.42- for _, system := range []string{"", "unknown", "wgs84", "gcj02", "bd09"} {- location := &av.Location{DefaultCoordinateSystem: system}- key := &av.Key{ID: "location", Type: av.KeyTypeLocation, Location: location}- field := &av.BaseInstanceField{ID: key.ID, Type: key.Type, Location: location}- value := &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{- Latitude: &zero, Longitude: &longitude, CoordinateSystem: system, OriginalInput: "(102.42,0)",- }}+ for _, location := range []*av.ValueLocation{{Name: "Office"}, {+ Latitude: &zero, Longitude: &longitude, OriginalInput: "(102.42,0)",+ }} {+ key := &av.Key{ID: "location", Type: av.KeyTypeLocation}+ field := &av.BaseInstanceField{ID: key.ID, Type: key.Type}+ value := &av.Value{Type: av.KeyTypeLocation, Location: location}assertAVContractJSONEqual(t, key, toContractAVKey(key))assertAVContractJSONEqual(t, field, toContractAVBaseInstanceField(field))table := &av.Table{BaseInstance: &av.BaseInstance{ID: "view"},diff --git a/kernel/api/contract_av_location_save_test.go b/kernel/api/contract_av_location_save_test.goindex e9ee7156cb..773d49f6b2 100644--- a/kernel/api/contract_av_location_save_test.go+++ b/kernel/api/contract_av_location_save_test.go@@ -15,17 +15,17 @@ func TestAVContractLocationSaveAndRender(t *testing.T) {database, view := fixture.attrView, fixture.attrView.Views[0]primary := database.GetBlockKeyValues()key := av.NewKey(ast.NewNodeID(), "Location", "", av.KeyTypeLocation)- key.Location = &av.Location{DefaultCoordinateSystem: "gcj02"}- coordinatesID, nameID, emptyID, unknownID := ast.NewNodeID(), ast.NewNodeID(), ast.NewNodeID(), ast.NewNodeID()- view.ItemIDs = []string{coordinatesID, nameID, emptyID, unknownID}+ coordinatesID, nameID, emptyID, zeroID := ast.NewNodeID(), ast.NewNodeID(), ast.NewNodeID(), ast.NewNodeID()+ zero, longitude := 0.0, 102.42+ view.ItemIDs = []string{coordinatesID, nameID, emptyID, zeroID}for _, id := range view.ItemIDs {primary.Values = append(primary.Values, &av.Value{ID: ast.NewNodeID(), KeyID: primary.Key.ID, BlockID: id,Type: av.KeyTypeBlock, IsDetached: true, Block: &av.ValueBlock{Content: id}})}database.KeyValues = []*av.KeyValues{primary, {Key: key, Values: []*av.Value{{ID: ast.NewNodeID(), KeyID: key.ID, BlockID: emptyID, Type: av.KeyTypeLocation, Location: &av.ValueLocation{}},- {ID: ast.NewNodeID(), KeyID: key.ID, BlockID: unknownID, Type: av.KeyTypeLocation,- Location: &av.ValueLocation{CoordinateSystem: "unknown"}},+ {ID: ast.NewNodeID(), KeyID: key.ID, BlockID: zeroID, Type: av.KeyTypeLocation,+ Location: &av.ValueLocation{Latitude: &zero, Longitude: &zero}},}}}view.Table.Columns = []*av.ViewTableColumn{{BaseField: &av.BaseField{ID: primary.Key.ID}},@@ -52,8 +52,8 @@ func TestAVContractLocationSaveAndRender(t *testing.T) {}for _, column := range result.Data.View.Columns {if column.ID == key.ID {- if column.Location == nil || column.Location.DefaultCoordinateSystem != "gcj02" {- t.Fatalf("location column default was lost: %+v", column.Location)+ if column.Type != av.KeyTypeLocation {+ t.Fatalf("location column type was lost: %+v", column)}return result.Data.View}@@ -68,18 +68,18 @@ func TestAVContractLocationSaveAndRender(t *testing.T) {}assertAVContractJSONEqual(t, want, value.Location)}- assertEmptyValues := func(table *av.Table) {+ assertStoredValues := func(table *av.Table) {t.Helper()assertLocation(table.GetValue(emptyID, key.ID), &av.ValueLocation{})- assertLocation(table.GetValue(unknownID, key.ID), &av.ValueLocation{CoordinateSystem: "unknown"})+ assertLocation(table.GetValue(zeroID, key.ID), &av.ValueLocation{Latitude: &zero, Longitude: &zero})}- // 只给缺少持久化值的单元格应用默认坐标系,已存空值及显式未知值保持原意。+ // 渲染补齐缺失单元格,不改变已存空值或零坐标。table := render()for _, id := range []string{coordinatesID, nameID} {- assertLocation(table.GetValue(id, key.ID), &av.ValueLocation{CoordinateSystem: "gcj02"})+ assertLocation(table.GetValue(id, key.ID), &av.ValueLocation{})}- assertEmptyValues(table)+ assertStoredValues(table)cache.ClearAVCache()stored, err := av.ParseAttributeView(database.ID)if err != nil {@@ -93,14 +93,13 @@ func TestAVContractLocationSaveAndRender(t *testing.T) {// 再次渲染后保存新位置,验证渲染操作不影响持久化。render()- zero, longitude := 0.0, 102.42saves := []struct {itemID stringlocation *av.ValueLocation}{{coordinatesID, &av.ValueLocation{Name: "Office", Latitude: &zero, Longitude: &longitude,- CoordinateSystem: "gcj02", OriginalInput: "(102.42,0)"}},- {nameID, &av.ValueLocation{Name: "Home", CoordinateSystem: "gcj02", OriginalInput: "Home"}},+ OriginalInput: "(102.42,0)"}},+ {nameID, &av.ValueLocation{Name: "Home", OriginalInput: "Home"}},}for _, save := range saves {value, updateErr := model.UpdateAttributeViewCell(nil, database.ID, key.ID, save.itemID,@@ -128,10 +127,10 @@ func TestAVContractLocationSaveAndRender(t *testing.T) {}}assertLocation(stored.GetValue(key.ID, emptyID), &av.ValueLocation{})- assertLocation(stored.GetValue(key.ID, unknownID), &av.ValueLocation{CoordinateSystem: "unknown"})+ assertLocation(stored.GetValue(key.ID, zeroID), &av.ValueLocation{Latitude: &zero, Longitude: &zero})table = render()for _, save := range saves {assertLocation(table.GetValue(save.itemID, key.ID), save.location)}- assertEmptyValues(table)+ assertStoredValues(table)}diff --git a/kernel/api/contract_av_map_test.go b/kernel/api/contract_av_map_test.goindex 674eae0cd6..7d20efc20f 100644--- a/kernel/api/contract_av_map_test.go+++ b/kernel/api/contract_av_map_test.go@@ -19,7 +19,7 @@ import ()func TestAVContractMapMapping(t *testing.T) {- table := &av.Table{Map: &av.MapSettings{ServiceID: "local-service", LocationKeyID: "20261009000000-abcdefg", ShowRecordList: true},+ table := &av.Table{Map: &av.MapSettings{LocationKeyID: "20261009000000-abcdefg"},MapMarkerScope: "page", Columns: []*av.TableColumn{}, Rows: []*av.TableRow{}, RowCount: 120}assertAVContractJSONEqual(t, &av.Map{Table: table}, avContractView(&av.Map{Table: table}))layout := &av.LayoutMap{LayoutTable: av.NewLayoutTable(), Settings: *table.Map}@@ -209,7 +209,7 @@ func TestAVContractMapPublishPagesAccessibleResult(t *testing.T) {view.Filters = []*av.ViewFilter{{Column: filterKey.ID, Operator: av.FilterOperatorIsEqual,Value: &av.Value{Type: av.KeyTypeText, Text: &av.ValueText{Content: "keep"}}}}view.LayoutType = av.LayoutTypeMap- view.Map = &av.LayoutMap{LayoutTable: view.Table, Settings: av.MapSettings{ShowRecordList: true}}+ view.Map = &av.LayoutMap{LayoutTable: view.Table}view.Table = nilview.Map.Columns = []*av.ViewTableColumn{{BaseField: &av.BaseField{ID: primary.Key.ID}, Calc: &av.FieldCalc{Operator: av.CalcOperatorCountAll}},@@ -307,7 +307,7 @@ func TestAVContractMapPublishFiltersTargetsAndPreservesSource(t *testing.T) {}view.ItemIDs = []string{hiddenID, visibleID}view.LayoutType = av.LayoutTypeMap- view.Map = &av.LayoutMap{LayoutTable: view.Table, Settings: av.MapSettings{ServiceID: "missing", LocationKeyID: ast.NewNodeID()}}+ view.Map = &av.LayoutMap{LayoutTable: view.Table, Settings: av.MapSettings{LocationKeyID: ast.NewNodeID()}}view.Table = nilif err := av.SaveAttributeView(database); err != nil {t.Fatal(err)diff --git a/kernel/api/contract_system_test.go b/kernel/api/contract_system_test.goindex eb44186a05..abedc1d2ef 100644--- a/kernel/api/contract_system_test.go+++ b/kernel/api/contract_system_test.go@@ -60,18 +60,6 @@ func TestAPIContractSystemCompleteConfiguration(t *testing.T) {if err := decoder.Decode(&sourceJSON); err != nil {t.Fatal(err)}- // 地图配置只返回元数据和凭据存在状态。- if source.Map != nil {- masked, marshalErr := json.Marshal(mapConfPayload(source.Map))- if marshalErr != nil {- t.Fatal(marshalErr)- }- var mapJSON any- if err := json.Unmarshal(masked, &mapJSON); err != nil {- t.Fatal(err)- }- sourceJSON.(map[string]any)["map"] = mapJSON- }decoder = json.NewDecoder(bytes.NewReader(after))decoder.UseNumber()if err := decoder.Decode(&payloadJSON); err != nil {diff --git a/kernel/api/map.go b/kernel/api/map.goindex 6760975df5..c4eb5495c2 100644--- a/kernel/api/map.go+++ b/kernel/api/map.go@@ -3,68 +3,22 @@ package apiimport ("github.com/gin-gonic/gin""github.com/siyuan-note/siyuan/kernel/apicontract"- "github.com/siyuan-note/siyuan/kernel/conf""github.com/siyuan-note/siyuan/kernel/model""github.com/siyuan-note/siyuan/kernel/util")-func mapConfPayload(config *conf.Map) *apicontract.MapConfig {- ret := &apicontract.MapConfig{Services: []*apicontract.MapService{}}- if config != nil {- ret.Revision = config.Revision- for _, service := range config.Services {- if service != nil && conf.IsMapProvider(service.Provider) {- ret.Services = append(ret.Services, &apicontract.MapService{- ID: service.ID, Name: service.Name, Provider: service.Provider,- HasAPIKey: service.HasAPIKey(), HasSecurityCode: service.HasSecurityCode(), Configured: service.Configured(),- })- }- }- }- return ret-}+var getMapRuntime = contractHandler(apicontract.MapGetRuntime, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[*apicontract.MapRuntime] {+ return apicontract.Success(&apicontract.MapRuntime{Provider: "openfreemap"})+}, mapRuntimeAdmission)-// 路由中间件之外保留处理器内的权限检查,拒绝发布上下文和非管理员内部调用,并禁止缓存响应。-func mapAdminAdmission[Data any](c *gin.Context) *apicontract.Response[Data] {+// 内置底图保留独立准入检查,不向发布页或绕过鉴权的进程开放地图宿主。+func mapRuntimeAdmission(c *gin.Context) *apicontract.Response[*apicontract.MapRuntime] {c.Header("Cache-Control", "no-store")c.Header("Pragma", "no-cache")if !model.IsAdminRoleContext(c) {- response := apicontract.Failure[Data](-1, "administrator access required")+ response := apicontract.Failure[*apicontract.MapRuntime](-1, "administrator access required")return &response}- return nil-}--var getMapConf = contractHandler(apicontract.MapGetConf, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[*apicontract.MapConfig] {- return apicontract.Success(mapConfPayload(model.Conf.GetMap()))-}, mapAdminAdmission[*apicontract.MapConfig])--var setMapConf = contractHandler(apicontract.MapSetConf, serializeSetting("map", func(c *gin.Context, request apicontract.MapSetConfRequest) apicontract.Response[*apicontract.MapConfig] {- inputs := make([]model.MapServiceInput, len(request.Services))- for i, service := range request.Services {- inputs[i] = model.MapServiceInput{ID: service.ID, Name: service.Name, Provider: service.Provider, APIKey: service.APIKey, SecurityCode: service.SecurityCode}- }- config, err := model.Conf.SetMap(inputs, request.ExpectedRevision)- if err != nil {- return apicontract.Failure[*apicontract.MapConfig](-1, err.Error())- }- return apicontract.Success(mapConfPayload(config))-}), mapAdminAdmission[*apicontract.MapConfig])--var getMapRuntime = contractHandler(apicontract.MapGetRuntime, func(c *gin.Context, request apicontract.MapRuntimeRequest) apicontract.Response[*apicontract.MapRuntime] {- service, err := model.Conf.GetMapRuntime(request.ServiceID)- if err != nil {- return apicontract.Failure[*apicontract.MapRuntime](-1, err.Error())- }- return apicontract.Success(&apicontract.MapRuntime{Provider: service.Provider, APIKey: service.APIKey, SecurityCode: service.SecurityCode})-}, mapRuntimeAdmission)--func mapRuntimeAdmission(c *gin.Context) *apicontract.Response[*apicontract.MapRuntime] {- if denied := mapAdminAdmission[*apicontract.MapRuntime](c); denied != nil {- return denied- }- // 沙箱自身导航后不再继承初始 CSP,必须由内核鉴权拒绝 opaque-origin 请求。- // 跳过空口令检查的启动模式不保证该边界,即使当前设置了口令也不启用 SDK。if util.SiYuanAccessAuthCodeBypass {response := apicontract.Failure[*apicontract.MapRuntime](-1, "mapAuthenticationBypass")return &responsediff --git a/kernel/api/map_test.go b/kernel/api/map_test.goindex ad57ec3b2d..90f51f4784 100644--- a/kernel/api/map_test.go+++ b/kernel/api/map_test.go@@ -5,7 +5,6 @@ import ("bytes""encoding/json""io"- "mime/multipart""net/http""net/http/httptest""os"@@ -32,12 +31,6 @@ func setupMapAPI(t *testing.T, role model.Role, guard bool) *gin.Engine {model.Conf.Api = &conf.API{Token: "map-test-api-token"}model.Conf.Sync = &conf.Sync{Enabled: true, Provider: 1}model.Conf.System = &conf.System{}- model.Conf.Map = &conf.Map{Services: []*conf.MapService{- {ID: "amap", Name: "AMap", Provider: conf.MapProviderAMap, APIKey: "map-api-private-key", SecurityCode: "map-api-private-code"},- {ID: "tencent", Name: "Tencent", Provider: conf.MapProviderTencent, APIKey: "map-api-other-key"},- {ID: "free", Name: "Free", Provider: conf.MapProviderOpenFreeMap},- {ID: "incomplete", Name: "Incomplete", Provider: conf.MapProviderAMap, APIKey: "map-api-incomplete-key"},- }}util.ConfDir, util.ReadOnly, util.TempDir = t.TempDir(), false, t.TempDir()t.Cleanup(func() {model.Conf, util.ConfDir, util.ReadOnly, util.TempDir = oldConf, oldConfDir, oldReadonly, oldTemp@@ -48,12 +41,8 @@ func setupMapAPI(t *testing.T, role model.Role, guard bool) *gin.Engine {engine.Use(ginSessions.Sessions("map-api-test", cookie.NewStore([]byte("map-api-test-session-key"))))engine.Use(func(c *gin.Context) { c.Set(model.RoleContextKey, role); c.Next() })if guard {- engine.POST("/api/map/getConf", contractRouteHandlers(apicontract.MapGetConf, getMapConf)...)- engine.POST("/api/map/setConf", contractRouteHandlers(apicontract.MapSetConf, setMapConf)...)engine.POST("/api/map/getRuntime", contractRouteHandlers(apicontract.MapGetRuntime, getMapRuntime)...)} else {- engine.POST("/api/map/getConf", getMapConf)- engine.POST("/api/map/setConf", setMapConf)engine.POST("/api/map/getRuntime", getMapRuntime)}engine.POST("/api/system/getConf", getConf)@@ -63,18 +52,6 @@ func setupMapAPI(t *testing.T, role model.Role, guard bool) *gin.Engine {func callMapAPI(t *testing.T, engine *gin.Engine, path, body string) *httptest.ResponseRecorder {t.Helper()- // 普通写入使用当前版本;并发测试显式提供旧版本,不被此辅助方法覆盖。- if path == "/api/map/setConf" {- var fields map[string]json.RawMessage- if json.Unmarshal([]byte(body), &fields) == nil && fields != nil && fields["expectedRevision"] == nil {- fields["expectedRevision"], _ = json.Marshal(model.Conf.Map.Revision)- encoded, err := json.Marshal(fields)- if err != nil {- t.Fatal(err)- }- body = string(encoded)- }- }request := httptest.NewRequest(http.MethodPost, "https://notes.example.com"+path, strings.NewReader(body))request.Header.Set("Content-Type", "application/json")request.RemoteAddr = "192.0.2.30:12345"@@ -95,123 +72,77 @@ func mapResponseCode(t *testing.T, response *httptest.ResponseRecorder) int {return result.Code}-func TestAPIContractMapConfigurationAndSelectedRuntime(t *testing.T) {+func TestAPIContractMapBuiltinRuntimeDoesNotReadOrWriteSettings(t *testing.T) {engine := setupMapAPI(t, model.RoleAdministrator, true)- model.Conf.Map.Services = append(model.Conf.Map.Services,- &conf.MapService{ID: "unsupported", Name: "Unsupported", Provider: "custom", APIKey: "map-api-unsupported-key"})- response := callMapAPI(t, engine, "/api/map/getConf", `{}`)- if mapResponseCode(t, response) != 0 || strings.Contains(response.Body.String(), "map-api-") || strings.Contains(response.Body.String(), `"apiKey"`) || strings.Contains(response.Body.String(), `"securityCode"`) {- t.Fatalf("getConf leaked credentials or failed: %s", response.Body.String())+ source := []byte(`{"map":{"services":[{"provider":"amap","apiKey":"obsolete-map-private-key","securityCode":"obsolete-map-private-code"}]}}`)+ path := filepath.Join(util.ConfDir, "conf.json")+ if err := os.WriteFile(path, source, 0600); err != nil {+ t.Fatal(err)}- var list struct{ Data apicontract.MapConfig }- if err := json.Unmarshal(response.Body.Bytes(), &list); err != nil || len(list.Data.Services) != 4 || !list.Data.Services[0].Configured || !list.Data.Services[0].HasSecurityCode || list.Data.Services[3].Configured {- t.Fatal("incorrect configured/presence metadata")+ if err := json.Unmarshal(source, model.Conf); err != nil {+ t.Fatal(err)}- for _, test := range []struct{ id, key, code string }{- {"amap", "map-api-private-key", "map-api-private-code"},- {"tencent", "map-api-other-key", ""},- {"free", "", ""},- } {- response = callMapAPI(t, engine, "/api/map/getRuntime", `{"serviceID":"`+test.id+`"}`)- if mapResponseCode(t, response) != 0 || response.Header().Get("Cache-Control") != "no-store" {- t.Fatal("runtime failed or was cacheable")- }- var runtime struct{ Data map[string]string }- if err := json.Unmarshal(response.Body.Bytes(), &runtime); err != nil || runtime.Data["provider"] == "" || runtime.Data["apiKey"] != test.key || runtime.Data["securityCode"] != test.code {- t.Fatal("runtime returned the wrong provider credentials")- }- for key := range runtime.Data {- if key != "provider" && key != "apiKey" && key != "securityCode" {- t.Fatalf("runtime included unrelated field %q", key)+ for _, readonly := range []bool{false, true} {+ util.ReadOnly = readonly+ for _, body := range []string{"", `{}`} {+ response := callMapAPI(t, engine, "/api/map/getRuntime", body)+ var result struct{ Data map[string]any }+ if mapResponseCode(t, response) != 0 || json.Unmarshal(response.Body.Bytes(), &result) != nil ||+ len(result.Data) != 1 || result.Data["provider"] != "openfreemap" ||+ response.Header().Get("Cache-Control") != "no-store" || response.Header().Get("Pragma") != "no-cache" {+ t.Fatalf("unexpected built-in runtime: %s", response.Body.String())}}}- for _, body := range []string{`{}`, `{"serviceID":"missing"}`, `{"serviceID":"incomplete"}`, `{"serviceID":"unsupported"}`, `{"serviceID":""}`, `{"serviceID":null}`} {- response = callMapAPI(t, engine, "/api/map/getRuntime", body)- if mapResponseCode(t, response) == 0 || strings.Contains(response.Body.String(), "map-api-") || response.Header().Get("Cache-Control") != "no-store" {- t.Fatal("unavailable runtime fell back or leaked credentials")- }- }- if len(model.Conf.Map.Services) != 5 || model.Conf.Map.Services[4].Provider != "custom" {- t.Fatal("safe configuration reads rewrote unrecognized persisted data")- }-}--func TestAPIContractMapWholeListSecretWrites(t *testing.T) {- engine := setupMapAPI(t, model.RoleAdministrator, true)- response := callMapAPI(t, engine, "/api/map/setConf", `{"services":[{"id":"amap","name":"Rename","provider":"amap"}]}`)- if mapResponseCode(t, response) != 0 || model.Conf.Map.Services[0].APIKey != "map-api-private-key" || model.Conf.Map.Services[0].SecurityCode != "map-api-private-code" || len(model.Conf.Map.Services) != 1 || strings.Contains(response.Body.String(), "map-api-") {- t.Fatal("full-list update leaked or replaced omitted credentials")+ after, err := os.ReadFile(path)+ if err != nil || !bytes.Equal(source, after) {+ t.Fatal("runtime modified the settings file")}- for _, body := range []string{- `{}`, `{"services":null}`, `{"services":[null]}`,- `{"services":[{"id":"amap","name":"Rename","provider":"amap","apiKey":null}]}`,- `{"services":[{"id":"amap","name":"Rename","provider":"amap","hasAPIKey":true}]}`,- `{"services":[{"name":"Remote","provider":"amap","remoteURL":"https://unknown.example"}]}`,- `{"services":[],"unknown":true}`, `{"services":[]} {"services":[]}`,- `{"services":[{"name":"Bad","provider":"custom"}]}`,- } {- response = callMapAPI(t, engine, "/api/map/setConf", body)- if mapResponseCode(t, response) == 0 || len(model.Conf.Map.Services) != 1 || model.Conf.Map.Services[0].APIKey != "map-api-private-key" {- t.Fatalf("invalid request altered map configuration: %s", body)+ for _, path := range []string{"/api/map/getConf", "/api/map/setConf"} {+ response := callMapAPI(t, engine, path, `{}`)+ if response.Code != http.StatusNotFound {+ t.Fatalf("removed configuration route remained active: %s", path)}}- response = callMapAPI(t, engine, "/api/map/setConf", `{"services":[{"id":"amap","name":"Cleared","provider":"amap","apiKey":""}]}`)- if mapResponseCode(t, response) != 0 || model.Conf.Map.Services[0].APIKey != "" || model.Conf.Map.Services[0].SecurityCode != "map-api-private-code" {- t.Fatal("explicit credential clear semantics changed")- }- response = callMapAPI(t, engine, "/api/map/setConf", `{"services":[{"id":"amap","name":"New provider","provider":"baidu","apiKey":"new-test-key"}]}`)- if mapResponseCode(t, response) != 0 || model.Conf.Map.Services[0].SecurityCode != "" || model.Conf.Map.Services[0].APIKey != "new-test-key" {- t.Fatal("provider change retained previous credentials")- }- stored, err := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- if err != nil || bytes.Contains(stored, []byte("new-test-key")) {- t.Fatal("API stored plaintext credentials")+ definitions := apicontract.Definitions()+ for _, definition := range definitions {+ if definition.Path == "/api/map/getConf" || definition.Path == "/api/map/setConf" {+ t.Fatal("removed configuration route remained in API declarations")+ }}}func TestAPIContractMapDeniesReadersAndPublish(t *testing.T) {for _, role := range []model.Role{model.RoleEditor, model.RoleReader, model.RoleVisitor} {for _, guard := range []bool{false, true} {- t.Run(string(rune('0'+role))+"/"+map[bool]string{true: "route", false: "handler"}[guard], func(t *testing.T) {- engine := setupMapAPI(t, role, guard)- before, _ := json.Marshal(model.Conf.Map)- for _, path := range []string{"/api/map/getConf", "/api/map/setConf", "/api/map/getRuntime"} {- response := callMapAPI(t, engine, path, `{"serviceID":"amap","services":[]}`)- if response.Code == http.StatusOK && mapResponseCode(t, response) == 0 || strings.Contains(response.Body.String(), "map-api-") {- t.Fatalf("non-administrator accessed %s", path)- }- if guard && role != model.RoleVisitor && response.Code != http.StatusForbidden {- t.Fatalf("route did not enforce administrator middleware: %d", response.Code)- }- }- after, _ := json.Marshal(model.Conf.Map)- if !bytes.Equal(before, after) {- t.Fatal("denied caller changed services")- }- })+ engine := setupMapAPI(t, role, guard)+ response := callMapAPI(t, engine, "/api/map/getRuntime", `{}`)+ if response.Code == http.StatusOK && mapResponseCode(t, response) == 0 {+ t.Fatal("non-administrator accessed the map runtime")+ }+ if guard && role != model.RoleVisitor && response.Code != http.StatusForbidden {+ t.Fatalf("route did not enforce administrator middleware: %d", response.Code)+ }+ if !guard && response.Header().Get("Cache-Control") != "no-store" {+ t.Fatal("admission response allowed caching")+ }}}}-func TestAPIContractMapGetConfAndExportNeverExposeCredentials(t *testing.T) {+func TestAPIContractMapGetConfAndExportHaveNoSettings(t *testing.T) {for _, role := range []model.Role{model.RoleAdministrator, model.RoleReader} {engine := setupMapAPI(t, role, true)- response := callMapAPI(t, engine, "/api/system/getConf", `{}`)- if mapResponseCode(t, response) != 0 || strings.Contains(response.Body.String(), "map-api-") {- t.Fatal("system getConf leaked map credentials")+ if err := json.Unmarshal([]byte(`{"map":{"services":[{"apiKey":"obsolete-map-private-key"}]}}`), model.Conf); err != nil {+ t.Fatal(err)}+ response := callMapAPI(t, engine, "/api/system/getConf", `{}`)var result struct {- Data struct{ Conf apicontract.SystemAppConf }+ Data struct{ Conf map[string]json.RawMessage }}- if err := json.Unmarshal(response.Body.Bytes(), &result); err != nil || result.Data.Conf.Map == nil {- t.Fatal("missing safe map configuration")- }- if role == model.RoleReader && len(result.Data.Conf.Map.Services) != 0 {- t.Fatal("publish getConf exposed local service metadata")- }- if role == model.RoleAdministrator && (len(result.Data.Conf.Map.Services) != 4 || !result.Data.Conf.Map.Services[0].Configured) {- t.Fatal("administrator lost redacted configuration metadata")+ if mapResponseCode(t, response) != 0 || json.Unmarshal(response.Body.Bytes(), &result) != nil || result.Data.Conf["map"] != nil ||+ strings.Contains(response.Body.String(), "obsolete-map-private-key") {+ t.Fatal("system configuration exposed removed map settings")}}engine := setupMapAPI(t, model.RoleAdministrator, true)@@ -238,70 +169,33 @@ func TestAPIContractMapGetConfAndExportNeverExposeCredentials(t *testing.T) {}data, err := io.ReadAll(file)file.Close()- if err != nil || bytes.Contains(data, []byte("map-api-")) || bytes.Contains(data, []byte("export-map-private-")) {- t.Fatal("exported configuration contains map credentials")+ if err != nil || bytes.Contains(data, []byte("export-map-private-")) {+ t.Fatal("exported private configuration")}- var exported model.AppConf- if err = json.Unmarshal(data, &exported); err != nil || exported.Map != nil || exported.UserData != "" || exported.CookieKey != "" || exported.MCPOAuth != "" || exported.AccessAuthCode != "" {- t.Fatal("device-local map services were included in portable configuration")+ var exported map[string]json.RawMessage+ if err = json.Unmarshal(data, &exported); err != nil || exported["map"] != nil {+ t.Fatal("exported map settings")}}after, _ := json.Marshal(model.Conf)if !bytes.Equal(before, after) {- t.Fatal("export altered active map credentials")- }-}--func TestAPIContractMapImportPreservesDeviceConfiguration(t *testing.T) {- engine := setupMapAPI(t, model.RoleAdministrator, true)- engine.POST("/api/system/importConf", importConf)- before, _ := json.Marshal(model.Conf.Map)- for _, payload := range []string{- `{}`, `{"map":null}`, `{"map":{"services":[]}}`,- `{"map":{"services":[{"id":"amap","name":"Other device","provider":"tencent","apiKey":"untrusted-import-key"}]}}`,- } {- var body bytes.Buffer- writer := multipart.NewWriter(&body)- part, err := writer.CreateFormFile("file", "settings.json")- if err != nil {- t.Fatal(err)- }- if _, err = io.WriteString(part, payload); err != nil {- t.Fatal(err)- }- if err = writer.Close(); err != nil {- t.Fatal(err)- }- request := httptest.NewRequest(http.MethodPost, "/api/system/importConf", &body)- request.Header.Set("Content-Type", writer.FormDataContentType())- response := httptest.NewRecorder()- engine.ServeHTTP(response, request)- if mapResponseCode(t, response) != 0 {- t.Fatal("configuration import failed")- }- after, _ := json.Marshal(model.Conf.Map)- if !bytes.Equal(before, after) {- t.Fatal("portable configuration replaced device-local services or credentials")- }+ t.Fatal("export altered active configuration")}}func TestAPIContractMapRuntimeDisabledWithAuthBypass(t *testing.T) {- engine := setupMapAPI(t, model.RoleAdministrator, true)- util.SiYuanAccessAuthCodeBypass = true- for _, password := range []string{"", "test-password"} {- model.Conf.AccessAuthCode = password- for _, serviceID := range []string{"amap", "free"} {- response := callMapAPI(t, engine, "/api/map/getRuntime", `{"serviceID":"`+serviceID+`"}`)- if mapResponseCode(t, response) == 0 || !strings.Contains(response.Body.String(), "mapAuthenticationBypass") || strings.Contains(response.Body.String(), "map-api-") || response.Header().Get("Cache-Control") != "no-store" {- t.Fatal("auth bypass mode enabled a map SDK or exposed runtime credentials")+ for _, guard := range []bool{false, true} {+ engine := setupMapAPI(t, model.RoleAdministrator, guard)+ util.SiYuanAccessAuthCodeBypass = true+ for _, password := range []string{"", "test-password"} {+ model.Conf.AccessAuthCode = password+ response := callMapAPI(t, engine, "/api/map/getRuntime", `{}`)+ if mapResponseCode(t, response) == 0 || !strings.Contains(response.Body.String(), "mapAuthenticationBypass") ||+ response.Header().Get("Cache-Control") != "no-store" {+ t.Fatal("auth bypass mode enabled the map runtime")}}}- response := callMapAPI(t, engine, "/api/map/getConf", `{}`)- if mapResponseCode(t, response) != 0 {- t.Fatal("SDK safety gate unnecessarily disabled local configuration management")- }}func TestAPIContractMapOpaqueOriginCannotReadKernelData(t *testing.T) {@@ -321,7 +215,7 @@ func TestAPIContractMapOpaqueOriginCannotReadKernelData(t *testing.T) {model.Conf.AccessAuthCode = passwordfor _, site := range []string{"", "cross-site", "same-site"} {for _, path := range []string{"/test-private-data", "/api/map/getRuntime"} {- request := httptest.NewRequest(http.MethodPost, "http://localhost:6806"+path, strings.NewReader(`{"serviceID":"amap"}`))+ request := httptest.NewRequest(http.MethodPost, "http://localhost:6806"+path, strings.NewReader(`{}`))request.RemoteAddr = "127.0.0.1:12345"request.Header.Set("Content-Type", "application/json")request.Header.Set("Origin", "null")@@ -342,105 +236,3 @@ func TestAPIContractMapOpaqueOriginCannotReadKernelData(t *testing.T) {}}}--func TestAPIContractMapRejectsStaleOrMissingRevision(t *testing.T) {- engine := setupMapAPI(t, model.RoleAdministrator, true)- initialRevision := model.Conf.Map.Revision- body, _ := json.Marshal(map[string]any{"expectedRevision": initialRevision, "services": []map[string]string{- {"id": "created-in-first-window", "name": "First", "provider": "tencent", "apiKey": "concurrent-private-key"},- }})- response := callMapAPI(t, engine, "/api/map/setConf", string(body))- var first struct{ Data apicontract.MapConfig }- if mapResponseCode(t, response) != 0 || json.Unmarshal(response.Body.Bytes(), &first) != nil || first.Data.Revision == initialRevision || first.Data.Revision == "" {- t.Fatal("map API did not return the saved revision")- }- before, err := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- if err != nil {- t.Fatal(err)- }- body, _ = json.Marshal(map[string]any{"expectedRevision": initialRevision, "services": []any{}})- response = callMapAPI(t, engine, "/api/map/setConf", string(body))- if mapResponseCode(t, response) == 0 || !strings.Contains(response.Body.String(), "mapSettingsConflict") {- t.Fatal("stale map list did not return the stable conflict message")- }- for _, invalid := range []string{`{"services":[]}`, `{"services":[],"expectedRevision":null}`, `{"services":[],"expectedRevision":false}`} {- // 直接构造请求,验证未携带版本号时不会被测试辅助方法补齐。- request := httptest.NewRequest(http.MethodPost, "/api/map/setConf", strings.NewReader(invalid))- response = httptest.NewRecorder()- engine.ServeHTTP(response, request)- requireAPIContract(t, http.MethodPost, "/api/map/setConf", response)- if mapResponseCode(t, response) == 0 {- t.Fatal("missing or invalid revision was accepted")- }- }- after, err := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- if err != nil || !bytes.Equal(before, after) || len(model.Conf.Map.Services) != 1 || model.Conf.Map.Services[0].APIKey != "concurrent-private-key" || model.Conf.Map.Revision != first.Data.Revision {- t.Fatal("conflicting window overwrote a new service or credential")- }-}--func TestAPIContractMapRemoteBasicOriginBoundary(t *testing.T) {- engine := setupMapAPI(t, model.RoleVisitor, true)- previousName := util.WorkspaceName- util.WorkspaceName = "map-origin-test"- t.Cleanup(func() { util.WorkspaceName = previousName })- mutations := 0- engine.POST("/test-private-basic", model.CheckAuth, func(c *gin.Context) {- mutations++- c.String(http.StatusOK, "private-data-fixture")- })- engine.GET("/stage/build/desktop/", model.CheckAuth, func(c *gin.Context) { c.Status(http.StatusOK) })- for _, test := range []struct {- name string- origin string- site string- token bool- status int- }{- {name: "opaque remote browser with Basic credentials", origin: "null", site: "cross-site", status: http.StatusUnauthorized},- {name: "opaque origin without fetch metadata", origin: "null", status: http.StatusUnauthorized},- {name: "opaque origin with same-origin metadata", origin: "null", site: "same-origin", status: http.StatusUnauthorized},- {name: "opaque origin with direct-navigation metadata", origin: "null", site: "none", status: http.StatusUnauthorized},- {name: "ordinary non-browser Basic client", status: http.StatusOK},- {name: "missing origin same-origin fetch", site: "same-origin", status: http.StatusOK},- {name: "missing origin cross-site fetch", site: "cross-site", status: http.StatusUnauthorized},- {name: "missing origin same-site fetch", site: "same-site", status: http.StatusUnauthorized},- {name: "same-origin browser", origin: "https://notes.example.com", site: "same-origin", status: http.StatusOK},- {name: "same-origin without fetch metadata", origin: "https://notes.example.com", status: http.StatusOK},- {name: "same-origin header with cross-site fetch", origin: "https://notes.example.com", site: "cross-site", status: http.StatusUnauthorized},- {name: "foreign origin without fetch metadata", origin: "https://foreign.example.com", status: http.StatusUnauthorized},- {name: "foreign origin with same-origin metadata", origin: "https://foreign.example.com", site: "same-origin", status: http.StatusUnauthorized},- {name: "foreign origin with cross-site metadata", origin: "https://foreign.example.com", site: "cross-site", status: http.StatusUnauthorized},- {name: "explicit API token stays authorized", origin: "null", site: "cross-site", token: true, status: http.StatusOK},- } {- t.Run(test.name, func(t *testing.T) {- request := httptest.NewRequest(http.MethodPost, "https://notes.example.com/test-private-basic", strings.NewReader(`{}`))- request.RemoteAddr = "198.51.100.7:23456"- request.Header.Set("Origin", test.origin)- request.Header.Set("Sec-Fetch-Site", test.site)- if test.token {- request.Header.Set("Authorization", "Token "+model.Conf.Api.Token)- } else {- request.SetBasicAuth(util.WorkspaceName, model.Conf.AccessAuthCode)- }- before := mutations- response := httptest.NewRecorder()- engine.ServeHTTP(response, request)- if response.Code != test.status || test.status == http.StatusUnauthorized && mutations != before {- t.Fatalf("remote Basic origin boundary: status=%d, want=%d, protected-handler-ran=%t", response.Code, test.status, mutations != before)- }- })- }- // 已登录用户从外部链接进入应用主页面,仍沿用会话来源策略中的顶层导航例外。- request := httptest.NewRequest(http.MethodGet, "https://notes.example.com/stage/build/desktop/", nil)- request.RemoteAddr = "198.51.100.7:23456"- request.Header.Set("Sec-Fetch-Site", "cross-site")- request.Header.Set("Sec-Fetch-Mode", "navigate")- request.Header.Set("Sec-Fetch-Dest", "document")- request.SetBasicAuth(util.WorkspaceName, model.Conf.AccessAuthCode)- response := httptest.NewRecorder()- engine.ServeHTTP(response, request)- if response.Code != http.StatusOK {- t.Fatal("legitimate top-level application navigation lost Basic authentication")- }-}diff --git a/kernel/api/router.go b/kernel/api/router.goindex 9998c4a50e..f023bb3562 100644--- a/kernel/api/router.go+++ b/kernel/api/router.go@@ -25,8 +25,6 @@ import ()func ServeAPI(ginServer *gin.Engine) {- ginServer.Handle("POST", "/api/map/getConf", contractRouteHandlers(apicontract.MapGetConf, getMapConf)...)- ginServer.Handle("POST", "/api/map/setConf", contractRouteHandlers(apicontract.MapSetConf, setMapConf)...)ginServer.Handle("POST", "/api/map/getRuntime", contractRouteHandlers(apicontract.MapGetRuntime, getMapRuntime)...)ginServer.Use(boxLeaseMiddleware)registerOauthRoutes(ginServer)diff --git a/kernel/api/system.go b/kernel/api/system.goindex af1a44876e..27755a2c27 100644--- a/kernel/api/system.go+++ b/kernel/api/system.go@@ -512,8 +512,6 @@ var exportConf = contractHandler(apicontract.SystemExportConf, func(c *gin.ConteclonedConf.Api = nilclonedConf.Repo = nilclonedConf.Secrets = nil- // 地图服务是本机配置;导入设置时保留本机服务列表,不随配置包迁移。- clonedConf.Map = nilclonedConf.NotebookCrypto = nilclonedConf.Onboarding = nilclonedConf.Publish = nildiff --git a/kernel/api/system_contract.go b/kernel/api/system_contract.goindex 0789dbef7f..90d264121f 100644--- a/kernel/api/system_contract.go+++ b/kernel/api/system_contract.go@@ -20,9 +20,6 @@ func systemConfPayload(value *model.AppConf) (result *apicontract.SystemAppConf,if err == nil && result != nil && value.AI != nil && result.AI != nil {result.AI.Decision = settingDecisionPayload(value.AI.Decision)}- if err == nil && result != nil && value.Map != nil {- result.Map = mapConfPayload(value.Map)- }return}diff --git a/kernel/apicontract/av_location.go b/kernel/apicontract/av_location.gonew file mode 100644index 0000000000..cda2de7e48--- /dev/null+++ b/kernel/apicontract/av_location.go@@ -0,0 +1,27 @@+package apicontract++import (+ "bytes"+ "encoding/json"+)++// UnmarshalJSON 拒绝额外坐标字段,包括不能按 WGS84 解释的其他坐标系声明。+func (value *AVValueLocation) UnmarshalJSON(data []byte) error {+ type plainLocation AVValueLocation+ next := plainLocation(*value)+ if next.Latitude != nil {+ latitude := *next.Latitude+ next.Latitude = &latitude+ }+ if next.Longitude != nil {+ longitude := *next.Longitude+ next.Longitude = &longitude+ }+ decoder := json.NewDecoder(bytes.NewReader(data))+ decoder.DisallowUnknownFields()+ if err := decoder.Decode(&next); err != nil {+ return err+ }+ *value = AVValueLocation(next)+ return nil+}diff --git a/kernel/apicontract/av_map.go b/kernel/apicontract/av_map.goindex 4dbf4e4f4e..f36a807966 100644--- a/kernel/apicontract/av_map.go+++ b/kernel/apicontract/av_map.go@@ -3,15 +3,11 @@ package apicontract// AVMapSettings 是 setAttrViewMap 事务的完整设置和地图渲染响应中的设置。// 地图只显示本次返回行页的标记,沿用普通视图的筛选、排序和分页。// 分组设置保留但不参与地图渲染;普通导出和发布展示记录,不加载地图服务。+// 交互地图固定使用内置 OpenFreeMap,位置值使用 WGS84。type AVMapSettings struct {- // 本机全局地图服务 ID;空字符串表示未选择。数据库不保存或返回提供商凭据。- // 缺失或删除服务时保留此 ID,不自动绑定其他服务。- ServiceID string `json:"serviceID"`// 位置字段 ID;空字符串表示未选择。字段缺失或类型变化时保留绑定,记录仍然返回。- // 隐藏的字段仍包含在 columns 和 rows.cells 中,客户端仅为有效且坐标系匹配的值绘制标记。+ // 隐藏的字段仍包含在 columns 和 rows.cells 中,客户端仅为有效 WGS84 坐标绘制标记。LocationKeyID string `json:"locationKeyID"`- // 是否显示记录列表。新地图默认显示;禁用时分页和标记范围仍然有效。- ShowRecordList bool `json:"showRecordList"`}type AVLayoutMap struct {diff --git a/kernel/apicontract/av_map_test.go b/kernel/apicontract/av_map_test.goindex b156985210..9789ed3099 100644--- a/kernel/apicontract/av_map_test.go+++ b/kernel/apicontract/av_map_test.go@@ -14,10 +14,13 @@ func TestAVMapTransactionContract(t *testing.T) {data stringvalid bool}{- {`{"serviceID":"local-service","locationKeyID":"20261009000000-abcdefg","showRecordList":true}`, true},- {`{"serviceID":"","locationKeyID":"","showRecordList":false}`, true},+ {`{"locationKeyID":"20261009000000-abcdefg"}`, true},+ {`{"locationKeyID":""}`, true},+ {`{}`, false},+ {`{"locationKeyID":false}`, false},{`{"serviceID":"","locationKeyID":""}`, false},- {`{"serviceID":"","locationKeyID":"","showRecordList":"true"}`, false},+ {`{"locationKeyID":"","showRecordList":true}`, false},+ {`{"locationKeyID":"","showRecordList":false}`, false},{`{"serviceID":"","locationKeyID":"","showRecordList":true,"apiKey":"secret"}`, false},} {var operation TransactionOperationdiff --git a/kernel/apicontract/av_test.go b/kernel/apicontract/av_test.goindex fc44d8ed97..d5770b85bb 100644--- a/kernel/apicontract/av_test.go+++ b/kernel/apicontract/av_test.go@@ -53,7 +53,7 @@ func TestAVValuePatchPresence(t *testing.T) {for _, patch := range []string{`{}`, `{"text":{}}`, `{"text":{"content":""}}`, `{"text":null}`, `{"TEXT":{"CONTENT":"x"},"unknown":{"keep":true}}`,`{"location":{}}`, `{"location":null}`, `{"location":{"name":"Home"}}`,`{"location":{"latitude":null,"longitude":null}}`,- `{"location":{"latitude":0,"longitude":0,"coordinateSystem":"unknown","originalInput":" 0.0, +0 "}}`} {+ `{"location":{"latitude":0,"longitude":0,"originalInput":" 0.0, +0 "}}`} {request, err := SetAttributeViewBlockAttr.Decode(strings.NewReader(`{"avID":"av","keyID":"key","itemID":"item","value":` + patch + `}`))if err != nil {t.Fatal(err)@@ -91,6 +91,10 @@ func TestAVLocationContract(t *testing.T) {`{"location":{"latitude":"0","longitude":0}}`,`{"location":{"latitude":0,"longitude":false}}`,`{"location":{"originalInput":123}}`,+ `{"location":{"latitude":0,"longitude":0,"coordinateSystem":"wgs84"}}`,+ `{"location":{"latitude":0,"longitude":0,"coordinateSystem":"gcj02"}}`,+ `{"location":{"latitude":0,"longitude":0,"coordinateSystem":"unknown"}}`,+ `{"location":{"name":"Home","unknown":true}}`,} {if _, err := SetAttributeViewBlockAttr.Decode(strings.NewReader(`{"avID":"av","keyID":"key","value":` + patch + `}`)); err == nil {t.Fatalf("invalid location structure accepted: %s", patch)@@ -105,10 +109,10 @@ func TestAVLocationContract(t *testing.T) {t.Fatal(err)}for _, value := range []string{- `{"type":"location","location":{"name":"Home","latitude":0,"longitude":0,"coordinateSystem":"wgs84","originalInput":"0,0"}}`,+ `{"type":"location","location":{"name":"Home","latitude":0,"longitude":0,"originalInput":"0,0"}}`,`{"type":"location","location":{"name":"Home"}}`,`{"type":"location"}`,- `{"type":"rollup","rollup":{"contents":[{"type":"location","location":{"latitude":-90,"longitude":180,"coordinateSystem":"unknown"}}]}}`,+ `{"type":"rollup","rollup":{"contents":[{"type":"location","location":{"latitude":-90,"longitude":180}}]}}`,} {body := []byte(`{"code":0,"msg":"","data":{"values":{"key":` + value + `}}}`)if err := bundle.ValidateResponse("POST", "/api/av/getAttributeViewAddingBlockDefaultValues", body); err != nil {@@ -116,13 +120,52 @@ func TestAVLocationContract(t *testing.T) {}}keyData, err := json.Marshal(map[string]any{"code": 0, "msg": "", "data": []*AVKey{{- ID: "location-key", Type: "location", Location: &AVLocation{DefaultCoordinateSystem: "gcj02"},+ ID: "location-key", Type: "location",}}})if err != nil {t.Fatal(err)}if err := bundle.ValidateResponse("POST", "/api/av/getAttributeViewKeysByID", keyData); err != nil {- t.Fatalf("location field settings rejected: %v", err)+ t.Fatalf("location field rejected: %v", err)+ }+ for _, location := range []string{+ `{"latitude":0,"longitude":0,"coordinateSystem":"wgs84"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":"gcj02"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":"unknown"}`,+ } {+ body := []byte(`{"code":0,"msg":"","data":{"values":{"key":{"type":"location","location":` + location + `}}}}`)+ if err := bundle.ValidateResponse("POST", "/api/av/getAttributeViewAddingBlockDefaultValues", body); err == nil {+ t.Fatalf("removed location coordinate system accepted: %s", location)+ }+ }+ legacyKey := []byte(`{"code":0,"msg":"","data":[{"id":"location-key","type":"location","location":{"defaultCoordinateSystem":"wgs84"}}]}`)+ if err := bundle.ValidateResponse("POST", "/api/av/getAttributeViewKeysByID", legacyKey); err == nil {+ t.Fatal("removed location field defaults accepted")+ }+}++func TestAVLocationSchemaSeparatesInputNulls(t *testing.T) {+ for _, inputFirst := range []bool{false, true} {+ builder := &schemaBuilder{definitions: map[string]*Schema{}, owners: map[string]reflect.Type{}}+ for _, input := range []bool{inputFirst, !inputFirst} {+ if _, err := builder.schema(reflect.TypeFor[AVValueLocation](), input); err != nil {+ t.Fatal(err)+ }+ }+ bundle := &Bundle{Definitions: builder.definitions}+ input, output := builder.definitions["AVValueLocationInput"], builder.definitions["AVValueLocation"]+ for _, field := range []string{"name", "latitude", "longitude", "originalInput"} {+ value := map[string]any{field: nil}+ if err := bundle.validate(input, value, "$"); err != nil {+ t.Fatalf("location input cannot clear %s: %v", field, err)+ }+ if err := bundle.validate(output, value, "$"); err == nil {+ t.Fatalf("location output accepted omitted field %s as null", field)+ }+ }+ if err := bundle.validate(input, map[string]any{"coordinateSystem": "gcj02"}, "$"); err == nil {+ t.Fatal("location schema accepted an explicit coordinate system")+ }}}diff --git a/kernel/apicontract/av_types.go b/kernel/apicontract/av_types.goindex 45ef594fad..f91a884582 100644--- a/kernel/apicontract/av_types.go+++ b/kernel/apicontract/av_types.go@@ -148,20 +148,18 @@ type AVValuePhone struct {Content string `json:"content" api:"optional,nullable"`}-// AVValueLocation 保存单个位置的原始坐标,不执行坐标系转换。+// AVValueLocation 保存单个位置的 WGS84 坐标,不执行坐标系转换。// API 使用具名成员,不接受无标签的坐标数组。// 界面按经度、纬度显示,坐标对粘贴默认经度在前且可显式切换;规范文本复制与导出保留纬度、经度顺序。// 纬度和经度必须同时为空或同时提供,范围分别为 [-90,90] 和 [-180,180],零是有效坐标。// 更新时省略成员保留原值,显式 null 同时清空两个坐标;名称可以独立存在。-// 坐标系省略或为空时按 unknown 处理,不推断 WGS84;其他非枚举值会被拒绝。-// 后续地图适配必须显式选择坐标顺序与转换规则,未知坐标系不能直接视为 WGS84。+// 位置值拒绝坐标系及其他额外字段,字段不提供默认坐标系设置。// 位置字段的文本筛选条件放在 AVValue.Text.Content,不将搜索词解析成坐标。type AVValueLocation struct {- Name string `json:"name,omitempty" api:"optional,nullable"`- Latitude *float64 `json:"latitude,omitempty" api:"optional,nullable"`- Longitude *float64 `json:"longitude,omitempty" api:"optional,nullable"`- CoordinateSystem string `json:"coordinateSystem,omitempty" api:"optional,nullable,enum=|unknown|wgs84|gcj02|bd09"`- // 来源文本不参与判空、筛选和排序。仅修改名称时保留;修改坐标或有效坐标系时若省略则清空。+ Name string `json:"name,omitempty" api:"optional,nullable"`+ Latitude *float64 `json:"latitude,omitempty" api:"optional,nullable"`+ Longitude *float64 `json:"longitude,omitempty" api:"optional,nullable"`+ // 来源文本不参与判空、筛选和排序。仅修改名称时保留;修改坐标时若省略则清空。OriginalInput string `json:"originalInput,omitempty" api:"optional,nullable"`}@@ -250,7 +248,6 @@ type AVKey struct {Relation *AVRelation `json:"relation,omitempty" api:"optional,nullable"`Rollup *AVRollup `json:"rollup,omitempty" api:"optional,nullable"`Date *AVDate `json:"date,omitempty" api:"optional,nullable"`- Location *AVLocation `json:"location,omitempty" api:"optional,nullable"`Created *AVCreated `json:"created,omitempty" api:"optional,nullable"`Updated *AVUpdated `json:"updated,omitempty" api:"optional,nullable"`}@@ -262,12 +259,6 @@ type AVSelectOption struct {ResolvedColor *AVAttributeViewColor `json:"resolvedColor,omitempty" api:"optional,nullable"`}-// AVLocation 的默认坐标系仅供新录入使用,不改变任何已存位置或复制、导入的值。-// 每个 AVValueLocation 的坐标系独立保存,显式 unknown 不是等待应用默认值的空值。-type AVLocation struct {- DefaultCoordinateSystem string `json:"defaultCoordinateSystem,omitempty" api:"optional,nullable,enum=|unknown|wgs84|gcj02|bd09"`-}-type AVRelation struct {AvID string `json:"avID" api:"optional,nullable"`IsTwoWay bool `json:"isTwoWay" api:"optional,nullable"`@@ -336,7 +327,6 @@ type AVBaseInstanceField struct {Relation *AVRelation `json:"relation,omitempty" api:"optional,nullable"`Rollup *AVRollup `json:"rollup,omitempty" api:"optional,nullable"`Date *AVDate `json:"date,omitempty" api:"optional,nullable"`- Location *AVLocation `json:"location,omitempty" api:"optional,nullable"`Created *AVCreated `json:"created,omitempty" api:"optional,nullable"`Updated *AVUpdated `json:"updated,omitempty" api:"optional,nullable"`}diff --git a/kernel/apicontract/av_union.go b/kernel/apicontract/av_union.goindex 0145f53295..655b8c71db 100644--- a/kernel/apicontract/av_union.go+++ b/kernel/apicontract/av_union.go@@ -31,6 +31,24 @@ func (value AVViewInstance) MarshalJSON() ([]byte, error) {}func avPayloadSchema(b *schemaBuilder, t reflect.Type, input bool) (*Schema, error) {+ if t == reflect.TypeFor[*AVValueLocation]() {+ schema, err := b.schema(t.Elem(), input)+ return nullable(schema), err+ }+ if t == reflect.TypeFor[AVValueLocation]() {+ name := t.Name()+ if input {+ name += "Input"+ }+ if _, ok := b.definitions[name]; !ok {+ result := &Schema{Type: "object", Properties: map[string]*Schema{}, AdditionalProperties: false}+ b.definitions[name] = result+ if err := b.fields(result, t, input); err != nil {+ return nil, err+ }+ }+ return &Schema{Ref: "#/$defs/" + name}, nil+ }if t == reflect.TypeFor[*AVValuePatch]() {schema, err := b.schema(reflect.TypeFor[AVValue](), input)return nullable(schema), errdiff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.goindex d82eaafeb2..6a40dc692f 100644--- a/kernel/apicontract/contracts.go+++ b/kernel/apicontract/contracts.go@@ -76,9 +76,9 @@ type ResponseOptions struct {var definitions []Definition-var MapGetConf = define[EmptyRequest, *MapConfig]("getMapConf", "/api/map/getConf", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")-var MapSetConf = define[MapSetConfRequest, *MapConfig]("setMapConf", "/api/map/setConf", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")-var MapGetRuntime = define[MapRuntimeRequest, *MapRuntime]("getMapRuntime", "/api/map/getRuntime", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")+// MapGetRuntime 返回内置 OpenFreeMap 标识,不读取或返回凭据,无需服务 ID。+// 仅管理员可用,响应禁止缓存;认证 bypass 模式返回 mapAuthenticationBypass。+var MapGetRuntime = define[EmptyRequest, *MapRuntime]("getMapRuntime", "/api/map/getRuntime", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")// MCP OAuth 协议入口返回标准 OAuth JSON 或授权页面,不使用内核结果信封。var MCPOAuthResource = define[EmptyRequest, BinaryContent]("mcpOAuthResource", "/.well-known/oauth-protected-resource/mcp", PublicAccess, NoBody, mcpOAuthContentOptions(), "GET")diff --git a/kernel/apicontract/map.go b/kernel/apicontract/map.goindex bd388afe53..d4ebf57a14 100644--- a/kernel/apicontract/map.go+++ b/kernel/apicontract/map.go@@ -1,97 +1,6 @@package apicontract-import (- "bytes"- "encoding/json"- "errors"- "io"- "reflect"-)--// MapConfig 为脱敏配置,只提供服务标识、供应商和凭据存在状态,不返回凭据内容。-// 启动时仅缺失或 null 的本机地图配置预置一项免密钥 OpenFreeMap;已有配置及删除后的空列表保持不变。-// 初始化不会选择或创建地图视图,也不请求地图供应商。-type MapConfig struct {- Services []*MapService `json:"services"`- Revision string `json:"revision"`-}--type MapService struct {- ID string `json:"id"`- Name string `json:"name"`- Provider string `json:"provider" api:"enum=amap|tencent|baidu|openfreemap"`- HasAPIKey bool `json:"hasAPIKey"`- HasSecurityCode bool `json:"hasSecurityCode"`- Configured bool `json:"configured"`-}--// MapSetConfRequest 整体替换最多 100 个本机服务,要求管理员和可写工作空间。-// 空列表删除全部服务;不接受未知字段、null 或任意远程服务地址。-// expectedRevision 必须与读取的 revision 一致;未保存过版本号的已有配置保持空字符串。-// 冲突返回 code=-1、msg=mapSettingsConflict,不修改服务和凭据;成功后生成新的独立版本号。-type MapSetConfRequest struct {- Services []MapServiceInput `json:"services"`- ExpectedRevision string `json:"expectedRevision"`-}--// MapServiceInput 的凭据省略时保留相同供应商的值,显式空字符串清除,切换供应商清除旧凭据。-// ID 省略或为空时生成;非空 ID 须匹配 [A-Za-z0-9][A-Za-z0-9_-]{0,127},本机缺失时按原 ID 创建。-// 名称去除首尾空白后为 1 至 256 字节,凭据最多 4096 字节。-// AMap 需要 APIKey 和 SecurityCode,腾讯及百度需要 APIKey,OpenFreeMap 不使用凭据。-type MapServiceInput struct {- ID string `json:"id" api:"optional"`- Name string `json:"name" api:"trim"`- Provider string `json:"provider" api:"enum=amap|tencent|baidu|openfreemap"`- APIKey *string `json:"apiKey,omitempty" api:"optional,nonnullable"`- SecurityCode *string `json:"securityCode,omitempty" api:"optional,nonnullable"`-}--type MapRuntimeRequest struct {- ServiceID string `json:"serviceID" api:"trim"`-}--// MapRuntime 只向管理员返回指定服务的运行凭据,响应禁止缓存;服务缺失或未配置时返回错误。-// 浏览器 SDK 凭据对当前浏览器和选中的地图供应商可见,不通过发布页或配置导出提供。-// 启用 SIYUAN_ACCESS_AUTH_CODE_BYPASS 的进程返回 code=-1、msg=mapAuthenticationBypass,-// 不提供运行凭据,避免沙箱导航后绕过内核鉴权。+// MapRuntime 声明内置 OpenFreeMap,不包含服务配置、密钥或安全码。type MapRuntime struct {- Provider string `json:"provider" api:"enum=amap|tencent|baidu|openfreemap"`- APIKey string `json:"apiKey,omitempty"`- SecurityCode string `json:"securityCode,omitempty"`-}--func init() {- MapSetConf.decodeRequest = decodeMapSetConf-}--func decodeMapSetConf(reader io.Reader) (request MapSetConfRequest, err error) {- var fields map[string]json.RawMessage- decoder := json.NewDecoder(reader)- if err = decoder.Decode(&fields); err != nil {- return request, errors.New("invalid map configuration request")- }- if decoder.Decode(new(json.RawMessage)) != io.EOF {- return request, errors.New("unexpected data after map configuration")- }- if len(fields) != 2 || fields["services"] == nil || fields["expectedRevision"] == nil {- return request, errors.New("map configuration must contain services and expectedRevision")- }- var services []map[string]json.RawMessage- if err = json.Unmarshal(fields["services"], &services); err != nil || services == nil {- return request, errors.New("map services must be an array")- }- for _, service := range services {- for key, value := range service {- switch key {- case "id", "name", "provider", "apiKey", "securityCode":- default:- return request, errors.New("unknown map service field")- }- if bytes.Equal(bytes.TrimSpace(value), []byte("null")) {- return request, errors.New("map service fields must not be null")- }- }- }- err = decodeRequestFields(reflect.ValueOf(&request).Elem(), fields)- return+ Provider string `json:"provider" api:"enum=openfreemap"`}diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.jsonindex 19460de95d..ee14432137 100644--- a/kernel/apicontract/schema.json+++ b/kernel/apicontract/schema.json@@ -8148,9 +8148,6 @@"id": {"type": "string"},- "location": {- "$ref": "#/$defs/AVLocation"- },"name": {"type": "string"},@@ -8856,9 +8853,6 @@"id": {"type": "string"},- "location": {- "$ref": "#/$defs/AVLocation"- },"name": {"type": "string"},@@ -9042,9 +9036,6 @@"id": {"type": "string"},- "location": {- "$ref": "#/$defs/AVLocation"- },"name": {"type": "string"},@@ -10002,39 +9993,15 @@}]},- "AVLocation": {- "type": "object",- "properties": {- "defaultCoordinateSystem": {- "type": "string",- "enum": [- "",- "unknown",- "wgs84",- "gcj02",- "bd09"- ]- }- },- "additionalProperties": false- },"AVMapSettings": {"type": "object","properties": {"locationKeyID": {"type": "string"- },- "serviceID": {- "type": "string"- },- "showRecordList": {- "type": "boolean"}},"required": [- "locationKeyID",- "serviceID",- "showRecordList"+ "locationKeyID"],"additionalProperties": false},@@ -10043,18 +10010,10 @@"properties": {"locationKeyID": {"type": "string"- },- "serviceID": {- "type": "string"- },- "showRecordList": {- "type": "boolean"}},"required": [- "locationKeyID",- "serviceID",- "showRecordList"+ "locationKeyID"],"additionalProperties": false},@@ -11917,9 +11876,6 @@"id": {"type": "string"},- "location": {- "$ref": "#/$defs/AVLocation"- },"name": {"type": "string"},@@ -12951,16 +12907,6 @@"AVValueLocation": {"type": "object","properties": {- "coordinateSystem": {- "type": "string",- "enum": [- "",- "unknown",- "wgs84",- "gcj02",- "bd09"- ]- },"latitude": {"type": "number"},@@ -12979,23 +12925,6 @@"AVValueLocationInput": {"type": "object","properties": {- "coordinateSystem": {- "enum": [- "",- "unknown",- "wgs84",- "gcj02",- "bd09"- ],- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },"latitude": {"anyOf": [{@@ -31106,163 +31035,21 @@},"additionalProperties": false},- "MapConfig": {- "type": "object",- "properties": {- "revision": {- "type": "string"- },- "services": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/MapService"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- }- },- "required": [- "revision",- "services"- ],- "additionalProperties": false- },"MapRuntime": {"type": "object","properties": {- "apiKey": {- "type": "string"- },- "provider": {- "type": "string",- "enum": [- "amap",- "tencent",- "baidu",- "openfreemap"- ]- },- "securityCode": {- "type": "string"- }- },- "required": [- "provider"- ],- "additionalProperties": false- },- "MapRuntimeRequestInput": {- "type": "object",- "properties": {- "serviceID": {- "type": "string"- }- },- "required": [- "serviceID"- ],- "additionalProperties": false- },- "MapService": {- "type": "object",- "properties": {- "configured": {- "type": "boolean"- },- "hasAPIKey": {- "type": "boolean"- },- "hasSecurityCode": {- "type": "boolean"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "provider": {- "type": "string",- "enum": [- "amap",- "tencent",- "baidu",- "openfreemap"- ]- }- },- "required": [- "configured",- "hasAPIKey",- "hasSecurityCode",- "id",- "name",- "provider"- ],- "additionalProperties": false- },- "MapServiceInputInput": {- "type": "object",- "properties": {- "apiKey": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- },"provider": {"type": "string","enum": [- "amap",- "tencent",- "baidu","openfreemap"]- },- "securityCode": {- "type": "string"}},"required": [- "name","provider"],"additionalProperties": false},- "MapSetConfRequestInput": {- "type": "object",- "properties": {- "expectedRevision": {- "type": "string"- },- "services": {- "type": "array",- "items": {- "$ref": "#/$defs/MapServiceInputInput"- }- }- },- "required": [- "expectedRevision",- "services"- ],- "additionalProperties": false- },"MarkdownHTMLRequestInput": {"type": "object","properties": {@@ -50226,16 +50013,6 @@"logLevel": {"type": "string"},- "map": {- "anyOf": [- {- "$ref": "#/$defs/MapConfig"- },- {- "type": "null"- }- ]- },"mcpOAuth": {"type": "string"},@@ -50433,7 +50210,6 @@"lang","langs","logLevel",- "map","mcpOAuth","notebookCrypto","ocr",@@ -61645,7 +61421,7 @@"action": {"type": "string","enum": [- "setAttrViewColLocationDefaultCoordinateSystem"+ "insertAttrViewBlock"]},"avID": {@@ -61687,14 +61463,7 @@"$ref": "#/$defs/TransactionContext"},"data": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "type": "null"},"deckID": {"type": "string"@@ -61739,7 +61508,14 @@"type": "boolean"},"retData": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/TransactionInsertedItems"+ },+ {+ "type": "null"+ }+ ]},"rootID": {"type": "string"@@ -61856,7 +61632,7 @@"action": {"type": "string","enum": [- "insertAttrViewBlock"+ "removeAttrViewBlock"]},"avID": {@@ -61943,14 +61719,7 @@"type": "boolean"},"retData": {- "anyOf": [- {- "$ref": "#/$defs/TransactionInsertedItems"- },- {- "type": "null"- }- ]+ "type": "null"},"rootID": {"type": "string"@@ -62067,7 +61836,7 @@"action": {"type": "string","enum": [- "removeAttrViewBlock"+ "addAttrViewCol"]},"avID": {@@ -62109,7 +61878,14 @@"$ref": "#/$defs/TransactionContext"},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},"deckID": {"type": "string"@@ -62271,7 +62047,7 @@"action": {"type": "string","enum": [- "addAttrViewCol"+ "updateAttrViewCol"]},"avID": {@@ -62313,14 +62089,7 @@"$ref": "#/$defs/TransactionContext"},"data": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "type": "null"},"deckID": {"type": "string"@@ -62482,7 +62251,7 @@"action": {"type": "string","enum": [- "updateAttrViewCol"+ "removeAttrViewCol"]},"avID": {@@ -62686,7 +62455,7 @@"action": {"type": "string","enum": [- "removeAttrViewCol"+ "sortAttrViewRow"]},"avID": {@@ -62728,7 +62497,14 @@"$ref": "#/$defs/TransactionContext"},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/AVRowOrderChangeInput"+ },+ {+ "type": "null"+ }+ ]},"deckID": {"type": "string"@@ -62890,7 +62666,7 @@"action": {"type": "string","enum": [- "sortAttrViewRow"+ "sortAttrViewCol"]},"avID": {@@ -62932,14 +62708,7 @@"$ref": "#/$defs/TransactionContext"},"data": {- "anyOf": [- {- "$ref": "#/$defs/AVRowOrderChangeInput"- },- {- "type": "null"- }- ]+ "type": "null"},"deckID": {"type": "string"@@ -63101,7 +62870,7 @@"action": {"type": "string","enum": [- "sortAttrViewCol"+ "sortAttrViewKey"]},"avID": {@@ -63305,7 +63074,7 @@"action": {"type": "string","enum": [- "sortAttrViewKey"+ "sortAttrViewBinding"]},"avID": {@@ -63509,7 +63278,7 @@"action": {"type": "string","enum": [- "sortAttrViewBinding"+ "updateAttrViewCell"]},"avID": {@@ -63551,7 +63320,14 @@"$ref": "#/$defs/TransactionContext"},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/AVValueInput"+ },+ {+ "type": "null"+ }+ ]},"deckID": {"type": "string"@@ -63713,7 +63489,7 @@"action": {"type": "string","enum": [- "updateAttrViewCell"+ "updateAttrViewCells"]},"avID": {@@ -63755,218 +63531,7 @@"$ref": "#/$defs/TransactionContext"},"data": {- "anyOf": [- {- "$ref": "#/$defs/AVValueInput"- },- {- "type": "null"- }- ]- },- "deckID": {- "type": "string"- },- "format": {- "type": "string"- },- "groupID": {- "type": "string"- },- "id": {- "type": "string"- },- "ignoreDefaultFill": {- "type": "boolean"- },- "isDetached": {- "type": "boolean"- },- "isTwoWay": {- "type": "boolean"- },- "keyID": {- "type": "string"- },- "layout": {- "type": "string"- },- "name": {- "type": "string"- },- "nextID": {- "type": "string"- },- "parentID": {- "type": "string"- },- "previousID": {- "type": "string"- },- "removeDest": {- "type": "boolean"- },- "retData": {- "type": "null"- },- "rootID": {- "type": "string"- },- "rowID": {- "type": "string"- },- "srcIDs": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]- },- "srcs": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TransactionSourceFieldsInput"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "targetGroupID": {- "type": "string"- },- "type": {- "type": "string",- "enum": [- "",- "block",- "text",- "number",- "date",- "select",- "mSelect",- "url",- "email",- "phone",- "location",- "mAsset",- "template",- "created",- "updated",- "checkbox",- "relation",- "rollup",- "lineNumber"- ]- },- "viewID": {- "type": "string"- },- "viewIDs": {- "type": "array",- "items": {- "type": "string"- }- }- },- "required": [- "action",- "id",- "rootID",- "parentID",- "previousID",- "nextID",- "blockIDs",- "blockID",- "deckID",- "avID",- "srcIDs",- "srcs",- "isDetached",- "name",- "type",- "format",- "keyID",- "rowID",- "isTwoWay",- "backRelationKeyID",- "removeDest",- "layout",- "groupID",- "targetGroupID",- "viewID",- "ignoreDefaultFill",- "context",- "data",- "retData"- ],- "additionalProperties": false- },- {- "type": "object",- "properties": {- "action": {- "type": "string",- "enum": [- "updateAttrViewCells"- ]- },- "avID": {- "type": "string"- },- "backRelationKeyID": {- "type": "string"- },- "blockID": {- "type": "string"- },- "blockIDs": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]- },- "cellUpdates": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TransactionCellUpdate"- },- {- "type": "null"- }- ]- }- },- "context": {- "$ref": "#/$defs/TransactionContext"- },- "data": {- "type": "null"+ "type": "null"},"deckID": {"type": "string"@@ -89759,7 +89324,7 @@"action": {"type": "string","enum": [- "setAttrViewColLocationDefaultCoordinateSystem"+ "insertAttrViewBlock"]},"avID": {@@ -89836,14 +89401,7 @@]},"data": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "type": "null"},"deckID": {"anyOf": [@@ -89986,7 +89544,14 @@]},"retData": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/TransactionInsertedItemsInput"+ },+ {+ "type": "null"+ }+ ]},"rootID": {"anyOf": [@@ -90117,7 +89682,7 @@"action": {"type": "string","enum": [- "insertAttrViewBlock"+ "removeAttrViewBlock"]},"avID": {@@ -90337,14 +89902,7 @@]},"retData": {- "anyOf": [- {- "$ref": "#/$defs/TransactionInsertedItemsInput"- },- {- "type": "null"- }- ]+ "type": "null"},"rootID": {"anyOf": [@@ -90475,7 +90033,7 @@"action": {"type": "string","enum": [- "removeAttrViewBlock"+ "addAttrViewCol"]},"avID": {@@ -90552,7 +90110,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},"deckID": {"anyOf": [@@ -90826,7 +90391,7 @@"action": {"type": "string","enum": [- "addAttrViewCol"+ "updateAttrViewCol"]},"avID": {@@ -90903,14 +90468,7 @@]},"data": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "type": "null"},"deckID": {"anyOf": [@@ -91184,358 +90742,7 @@"action": {"type": "string","enum": [- "updateAttrViewCol"- ]- },- "avID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "backRelationKeyID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "blockID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "blockIDs": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]- },- "cellUpdates": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TransactionCellUpdateInput"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "context": {- "anyOf": [- {- "$ref": "#/$defs/TransactionContext"- },- {- "type": "null"- }- ]- },- "data": {- "type": "null"- },- "deckID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "format": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "groupID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "id": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "ignoreDefaultFill": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "isDetached": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "isTwoWay": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "keyID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "layout": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "name": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "nextID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "parentID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "previousID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "removeDest": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "retData": {- "type": "null"- },- "rootID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "rowID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "srcIDs": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]- },- "srcs": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TransactionSourceFieldsInput"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "targetGroupID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "type": {- "enum": [- "",- "block",- "text",- "number",- "date",- "select",- "mSelect",- "url",- "email",- "phone",- "location",- "mAsset",- "template",- "created",- "updated",- "checkbox",- "relation",- "rollup",- "lineNumber"- ],- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "viewID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "viewIDs": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]- }- },- "required": [- "action"- ],- "additionalProperties": false- },- {- "type": "object",- "properties": {- "action": {- "type": "string",- "enum": [- "removeAttrViewCol"+ "removeAttrViewCol"]},"avID": {@@ -114184,7 +113391,6 @@"setAttrViewColIcon","setAttrViewColDesc","setAttrViewColAttributePanelVisibility",- "setAttrViewColLocationDefaultCoordinateSystem","insertAttrViewBlock","removeAttrViewBlock","addAttrViewCol",@@ -150386,92 +149592,6 @@]}},- {- "method": "POST",- "path": "/api/map/getConf",- "handler": "getMapConf",- "authorization": [- "authenticated",- "admin"- ],- "body": "none",- "request": {- "$ref": "#/$defs/EmptyRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "anyOf": [- {- "$ref": "#/$defs/MapConfig"- },- {- "type": "null"- }- ]- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": false- },- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- -1- ]- },- "data": {- "anyOf": [- {- "type": "object",- "properties": {- "closeTimeout": {- "type": "number"- }- },- "required": [- "closeTimeout"- ],- "additionalProperties": false- },- {- "type": "null"- }- ]- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": true- }- ]- }- },{"method": "POST","path": "/api/map/getRuntime",@@ -150480,9 +149600,9 @@"authenticated","admin"],- "body": "json",+ "body": "none","request": {- "$ref": "#/$defs/MapRuntimeRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -150558,93 +149678,6 @@]}},- {- "method": "POST",- "path": "/api/map/setConf",- "handler": "setMapConf",- "authorization": [- "authenticated",- "admin",- "writable"- ],- "body": "json",- "request": {- "$ref": "#/$defs/MapSetConfRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "anyOf": [- {- "$ref": "#/$defs/MapConfig"- },- {- "type": "null"- }- ]- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": false- },- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- -1- ]- },- "data": {- "anyOf": [- {- "type": "object",- "properties": {- "closeTimeout": {- "type": "number"- }- },- "required": [- "closeTimeout"- ],- "additionalProperties": false- },- {- "type": "null"- }- ]- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": true- }- ]- }- },{"method": "POST","path": "/api/mcp/addOAuthClient",diff --git a/kernel/apicontract/system_conf.go b/kernel/apicontract/system_conf.goindex 3787dadd12..dfc0c7e846 100644--- a/kernel/apicontract/system_conf.go+++ b/kernel/apicontract/system_conf.go@@ -22,7 +22,6 @@ type SystemAppConf struct {Search *SettingSearch `json:"search" api:"optional,nullable"`Flashcard *SettingFlashcard `json:"flashcard" api:"optional,nullable"`AI *SettingAI `json:"ai" api:"optional,nullable"`- Map *MapConfig `json:"map" api:"optional,nullable"`OCR *SettingOCR `json:"ocr" api:"optional,nullable"`Secrets *SettingSecrets `json:"secrets" api:"optional,nullable"`Variables *SettingVariables `json:"variables" api:"optional,nullable"`diff --git a/kernel/apicontract/transaction_schema.go b/kernel/apicontract/transaction_schema.goindex 13ba864b18..07228d5167 100644--- a/kernel/apicontract/transaction_schema.go+++ b/kernel/apicontract/transaction_schema.go@@ -48,8 +48,6 @@ var transactionActionPayloads = []transactionActionPayload{{"setAttrViewColDesc", reflect.TypeFor[string](), reflect.TypeFor[Null]()},// 仅修改属性面板可见性;data 支持空字符串、always、hide-empty、hide,不影响数据库视图的字段显隐。{"setAttrViewColAttributePanelVisibility", reflect.TypeFor[string](), reflect.TypeFor[Null]()},- // 仅设置位置字段的新录入默认坐标系,data 为 unknown、wgs84、gcj02 或 bd09,不改写已有位置。- {"setAttrViewColLocationDefaultCoordinateSystem", reflect.TypeFor[string](), reflect.TypeFor[Null]()},{"insertAttrViewBlock", reflect.TypeFor[Null](), reflect.TypeFor[TransactionInsertedItems]()},{"removeAttrViewBlock", reflect.TypeFor[Null](), reflect.TypeFor[Null]()},{"addAttrViewCol", reflect.TypeFor[string](), reflect.TypeFor[Null]()},diff --git a/kernel/apicontract/transaction_test.go b/kernel/apicontract/transaction_test.goindex fd882c6027..6108365418 100644--- a/kernel/apicontract/transaction_test.go+++ b/kernel/apicontract/transaction_test.go@@ -50,7 +50,6 @@ func TestTransactionFiniteActionSchemas(t *testing.T) {}for _, fixture := range []struct{ action, data string }{{"setAttrViewColAttributePanelVisibility", `"hide-empty"`},- {"setAttrViewColLocationDefaultCoordinateSystem", `"wgs84"`},{"update", `"<div>content</div>"`},{"append", `"<div>content</div>"`},{"move", `"<div>content</div>"`},diff --git a/kernel/av/av.go b/kernel/av/av.goindex 0bf09536bf..a75047b0c6 100644--- a/kernel/av/av.go+++ b/kernel/av/av.go@@ -210,8 +210,7 @@ type Key struct {Rollup *Rollup `json:"rollup,omitempty"` // 汇总信息// 日期- Date *Date `json:"date,omitempty"` // 日期设置- Location *Location `json:"location,omitempty"` // 新输入位置的默认坐标系+ Date *Date `json:"date,omitempty"` // 日期设置// 创建时间Created *Created `json:"created,omitempty"` // 创建时间设置@@ -1457,8 +1456,8 @@ var (ErrInvalidColumnAlign = errors.New("invalid column align")ErrSpecTooNew = errors.New("attribute view spec is too new")ErrRichTextSpecMismatch = errors.New("attribute view rich text requires storage spec 9")- ErrMapSpecMismatch = errors.New("attribute view map requires storage spec 12")- ErrLocationSpecMismatch = errors.New("attribute view location requires storage spec 11")+ ErrMapSpecMismatch = errors.New("attribute view map requires storage spec 13")+ ErrLocationSpecMismatch = errors.New("attribute view location requires storage spec 13")ErrFilterTooDeep = errors.New("filter nesting depth exceeds the maximum allowed"))diff --git a/kernel/av/av_fix.go b/kernel/av/av_fix.goindex 5da6260950..a19e2130e0 100644--- a/kernel/av/av_fix.go+++ b/kernel/av/av_fix.go@@ -27,11 +27,12 @@ import ()const (- CurrentSpec = 12+ CurrentSpec = 13PlainTextSpec = 8RichTextSpec = 9- LocationSpec = 11- MapSpec = 12+ // 单一 WGS84 位置和内置底图使用独立版本,防止其他格式的内核重写坐标含义。+ LocationSpec = 13+ MapSpec = 13)const MaxFilterNestingDepth = 3diff --git a/kernel/av/layout.go b/kernel/av/layout.goindex ac638b5d27..566900fb7a 100644--- a/kernel/av/layout.go+++ b/kernel/av/layout.go@@ -164,7 +164,6 @@ type BaseInstanceField struct {Relation *Relation `json:"relation,omitempty"` // 关联字段Rollup *Rollup `json:"rollup,omitempty"` // 汇总字段Date *Date `json:"date,omitempty"` // 日期设置- Location *Location `json:"location,omitempty"` // 新输入位置的默认坐标系Created *Created `json:"created,omitempty"` // 创建时间设置Updated *Updated `json:"updated,omitempty"` // 更新时间设置}diff --git a/kernel/av/layout_map.go b/kernel/av/layout_map.goindex e231849295..18f7ba7c52 100644--- a/kernel/av/layout_map.go+++ b/kernel/av/layout_map.go@@ -5,33 +5,40 @@package avimport (+ "bytes"+ "encoding/json""fmt"- "regexp""github.com/88250/lute/ast")-// MapSettings 只保存本机地图服务引用和位置字段绑定,不保存服务凭据或浏览状态。+// MapSettings 只保存位置字段绑定,底图固定为 OpenFreeMap。type MapSettings struct {- ServiceID string `json:"serviceID"`- LocationKeyID string `json:"locationKeyID"`- ShowRecordList bool `json:"showRecordList"`+ LocationKeyID string `json:"locationKeyID"`}-var mapServiceIDPattern = regexp.MustCompile(`^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$`)+// UnmarshalJSON 拒绝额外设置,避免把不支持的地图结构静默保存为新结构。+func (settings *MapSettings) UnmarshalJSON(data []byte) error {+ type plainSettings MapSettings+ var next plainSettings+ decoder := json.NewDecoder(bytes.NewReader(data))+ decoder.DisallowUnknownFields()+ if err := decoder.Decode(&next); err != nil {+ return err+ }+ *settings = MapSettings(next)+ return nil+}-// Validate 允许缺失的服务和字段引用,保持跨设备、删除和撤销后的原始绑定。+// Validate 允许缺失的字段引用,保持跨设备、删除和撤销后的原始绑定。func (settings MapSettings) Validate() error {- if settings.ServiceID != "" && !mapServiceIDPattern.MatchString(settings.ServiceID) {- return fmt.Errorf("invalid map service ID")- }if settings.LocationKeyID != "" && !ast.IsNodeIDPattern(settings.LocationKeyID) {return fmt.Errorf("invalid map location field ID")}return nil}-// LayoutMap 独立保存记录列表字段顺序和显隐设置,复用表格的筛选、排序及分页。+// LayoutMap 复用表格的数据字段、筛选、排序及分页。type LayoutMap struct {*LayoutTableSettings MapSettings `json:"settings"`@@ -49,7 +56,7 @@ func NewMapView() *View {view := NewTableView()view.Name = GetAttributeViewI18n("map")view.LayoutType = LayoutTypeMap- view.Map = &LayoutMap{LayoutTable: view.Table, Settings: MapSettings{ShowRecordList: true}}+ view.Map = &LayoutMap{LayoutTable: view.Table}view.Table = nilreturn view}diff --git a/kernel/av/layout_map_test.go b/kernel/av/layout_map_test.goindex e3f2d22fd5..0d62796cf8 100644--- a/kernel/av/layout_map_test.go+++ b/kernel/av/layout_map_test.go@@ -17,7 +17,7 @@ func TestMapPrivatePaginationBufferIsNotSerialized(t *testing.T) {}func TestMapConditionalSpecAndValidation(t *testing.T) {- for _, spec := range []int{PlainTextSpec, RichTextSpec, 10, LocationSpec} {+ for _, spec := range []int{PlainTextSpec, RichTextSpec, 10, 11, 12, CurrentSpec} {plain := &AttributeView{Spec: spec}UpgradeSpec(plain)if plain.Spec != spec {@@ -26,8 +26,8 @@ func TestMapConditionalSpecAndValidation(t *testing.T) {}for _, nested := range []bool{false, true} {view := &View{LayoutType: LayoutTypeTable, Map: &LayoutMap{LayoutTable: NewLayoutTable(),- Settings: MapSettings{ServiceID: "missing-service", LocationKeyID: ast.NewNodeID()}}}- attrView := &AttributeView{Spec: LocationSpec, Views: []*View{view}}+ Settings: MapSettings{LocationKeyID: ast.NewNodeID()}}}+ attrView := &AttributeView{Spec: 12, Views: []*View{view}}if nested {attrView.Views = []*View{{Groups: []*View{view}}}}@@ -61,16 +61,33 @@ func TestMapConditionalSpecAndValidation(t *testing.T) {}func TestMapSettingsValidation(t *testing.T) {- for _, settings := range []MapSettings{{}, {ServiceID: "map_1-2", LocationKeyID: ast.NewNodeID()},- {ServiceID: "missing", ShowRecordList: true}} {+ for _, settings := range []MapSettings{{}, {LocationKeyID: ast.NewNodeID()}} {if err := settings.Validate(); err != nil {t.Fatal(err)}}- for _, settings := range []MapSettings{{ServiceID: "https://maps.invalid/"}, {ServiceID: " key"},- {ServiceID: "_key"}, {LocationKeyID: "invalid"}} {+ for _, settings := range []MapSettings{{LocationKeyID: "invalid"}, {LocationKeyID: " key"}} {if settings.Validate() == nil {t.Fatalf("invalid map settings accepted: %+v", settings)}}}++func TestMapSettingsJSONRejectsLegacyFieldsWithoutMutation(t *testing.T) {+ for _, payload := range []string{+ `{"locationKeyID":"","serviceID":"openfreemap"}`,+ `{"locationKeyID":"","serviceID":""}`,+ `{"locationKeyID":"","showRecordList":true}`,+ `{"locationKeyID":"","showRecordList":false}`,+ `{"locationKeyID":"","apiKey":"secret"}`,+ } {+ settings := MapSettings{LocationKeyID: ast.NewNodeID()}+ before := settings+ if err := json.Unmarshal([]byte(payload), &settings); err == nil {+ t.Fatalf("legacy map setting accepted: %s", payload)+ }+ if settings != before {+ t.Fatalf("rejected settings changed field binding: %s", payload)+ }+ }+}diff --git a/kernel/av/location_map_spec_test.go b/kernel/av/location_map_spec_test.gonew file mode 100644index 0000000000..de21a43728--- /dev/null+++ b/kernel/av/location_map_spec_test.go@@ -0,0 +1,42 @@+package av++import (+ "encoding/json"+ "testing"+)++func TestLocationAndMapWGS84StorageSpec(t *testing.T) {+ for _, spec := range []int{PlainTextSpec, RichTextSpec, 10, 11, 12} {+ plain := &AttributeView{Spec: spec}+ UpgradeSpec(plain)+ if plain.Spec != spec {+ t.Fatalf("unrelated database changed from spec %d to %d", spec, plain.Spec)+ }+ for _, mapped := range []bool{false, true} {+ view := &AttributeView{Spec: spec, KeyValues: []*KeyValues{{Key: &Key{Type: KeyTypeLocation}}}}+ wantErr := ErrLocationSpecMismatch+ if mapped {+ view.Views = []*View{{LayoutType: LayoutTypeMap, Map: &LayoutMap{LayoutTable: NewLayoutTable()}}}+ wantErr = ErrMapSpecMismatch+ }+ data, err := json.Marshal(view)+ if err != nil {+ t.Fatal(err)+ }+ if _, err = ParseAttributeViewData("location", data); err != wantErr {+ t.Fatalf("spec %d accepted WGS84 data: %v", spec, err)+ }+ UpgradeSpec(view)+ if view.Spec != 13 {+ t.Fatalf("new WGS84 data can be rewritten by a spec-12 kernel: %d", view.Spec)+ }+ data, err = json.Marshal(view)+ if err != nil {+ t.Fatal(err)+ }+ if _, err = ParseAttributeViewData("location", data); err != nil {+ t.Fatalf("new WGS84 storage spec rejected: %v", err)+ }+ }+ }+}diff --git a/kernel/av/value_location.go b/kernel/av/value_location.goindex 0966839992..b5592f43b3 100644--- a/kernel/av/value_location.go+++ b/kernel/av/value_location.go@@ -1,33 +1,42 @@package avimport (+ "bytes"+ "encoding/json""fmt""math""strconv""strings")-// ValueLocation 保留位置名称、原始坐标系和输入来源,不推断或转换坐标。+// ValueLocation 保留位置名称、WGS84 坐标和输入来源,不执行坐标转换。// 空指针表示坐标缺省;零是有效坐标,经纬度必须同时存在或同时为空。type ValueLocation struct {- Name string `json:"name,omitempty"`- Latitude *float64 `json:"latitude,omitempty"`- Longitude *float64 `json:"longitude,omitempty"`- CoordinateSystem string `json:"coordinateSystem,omitempty"`- OriginalInput string `json:"originalInput,omitempty"`+ Name string `json:"name,omitempty"`+ Latitude *float64 `json:"latitude,omitempty"`+ Longitude *float64 `json:"longitude,omitempty"`+ OriginalInput string `json:"originalInput,omitempty"`}-// Location 仅为尚未存储的新输入提供坐标系默认值,不修改已有坐标的含义。-type Location struct {- DefaultCoordinateSystem string `json:"defaultCoordinateSystem,omitempty"`-}--func IsLocationCoordinateSystem(value string) bool {- switch value {- case "", "unknown", "wgs84", "gcj02", "bd09":- return true+// UnmarshalJSON 拒绝额外字段,避免将带其他坐标系的结构静默解释为 WGS84。+func (location *ValueLocation) UnmarshalJSON(data []byte) error {+ type plainLocation ValueLocation+ next := plainLocation(*location)+ if next.Latitude != nil {+ latitude := *next.Latitude+ next.Latitude = &latitude+ }+ if next.Longitude != nil {+ longitude := *next.Longitude+ next.Longitude = &longitude+ }+ decoder := json.NewDecoder(bytes.NewReader(data))+ decoder.DisallowUnknownFields()+ if err := decoder.Decode(&next); err != nil {+ return err}- return false+ *location = ValueLocation(next)+ return nil}func (location *ValueLocation) IsEmpty() bool {@@ -35,7 +44,7 @@ func (location *ValueLocation) IsEmpty() bool {(nil == location.Latitude || nil == location.Longitude)}-// Normalize 仅校验数值和坐标系,缺省坐标系保持为未知,原始输入不参与值语义。+// Normalize 仅校验 WGS84 经纬度范围,原始输入不参与值语义。func (location *ValueLocation) Normalize() error {if nil == location {return nil@@ -43,9 +52,6 @@ func (location *ValueLocation) Normalize() error {if (nil == location.Latitude) != (nil == location.Longitude) {return fmt.Errorf("location latitude and longitude must both be present or null")}- if !IsLocationCoordinateSystem(location.CoordinateSystem) {- return fmt.Errorf("invalid location coordinate system [%s]", location.CoordinateSystem)- }if nil == location.Latitude {return nil}@@ -56,9 +62,6 @@ func (location *ValueLocation) Normalize() error {if math.IsNaN(longitude) || math.IsInf(longitude, 0) || longitude < -180 || longitude > 180 {return fmt.Errorf("location longitude must be finite and between -180 and 180")}- if "" == location.CoordinateSystem {- location.CoordinateSystem = "unknown"- }return nil}@@ -70,17 +73,13 @@ func (location *ValueLocation) String() string {if nil == location.Latitude || nil == location.Longitude {return name}- crs := map[string]string{"wgs84": "WGS84", "gcj02": "GCJ-02", "bd09": "BD-09"}[location.CoordinateSystem]- if "" == crs {- crs = "unknown"- }formatCoordinate := func(value float64) string {if 0 == value {return "0"}return strconv.FormatFloat(value, 'f', -1, 64)}- coordinates := formatCoordinate(*location.Latitude) + ", " + formatCoordinate(*location.Longitude) + " [" + crs + "]"+ coordinates := formatCoordinate(*location.Latitude) + ", " + formatCoordinate(*location.Longitude) + " [WGS84]"if "" == name {return coordinates}@@ -93,7 +92,7 @@ func (view *AttributeView) HasLocation() bool {return false}for _, values := range view.KeyValues {- if nil != values && nil != values.Key && (KeyTypeLocation == values.Key.Type || nil != values.Key.Location) {+ if nil != values && nil != values.Key && KeyTypeLocation == values.Key.Type {return true}}@@ -102,7 +101,7 @@ func (view *AttributeView) HasLocation() bool {if nil == current {return false}- if nil != current.GroupKey && (KeyTypeLocation == current.GroupKey.Type || nil != current.GroupKey.Location) {+ if nil != current.GroupKey && KeyTypeLocation == current.GroupKey.Type {return true}for _, group := range current.Groups {@@ -126,61 +125,18 @@ func (view *AttributeView) HasLocation() bool {return found}-// NormalizeLocations 先检查全部位置,再应用缺省坐标系,避免失败时部分修改数据库。+// NormalizeLocations 校验全部持久化位置,不改写坐标或来源。func (view *AttributeView) NormalizeLocations() (err error) {if nil == view {return nil}- validateKey := func(key *Key) error {- if nil != key && nil != key.Location && !IsLocationCoordinateSystem(key.Location.DefaultCoordinateSystem) {- return fmt.Errorf("invalid location default coordinate system [%s]", key.Location.DefaultCoordinateSystem)- }- return nil- }- for _, values := range view.KeyValues {- if nil != values {- if err = validateKey(values.Key); nil != err {- return- }- }- }- var validateView func(*View) error- validateView = func(current *View) error {- if nil == current {- return nil- }- if err := validateKey(current.GroupKey); nil != err {- return err- }- for _, group := range current.Groups {- if err := validateView(group); nil != err {- return err- }- }- return nil- }- for _, current := range view.Views {- if err = validateView(current); nil != err {- return- }- }- var locations []*ValueLocationview.visitPersistedValues(func(value *Value) {if nil != err || nil == value.Location {return}- candidate := *value.Location- if err = candidate.Normalize(); nil == err {- locations = append(locations, value.Location)- }+ err = value.Location.Normalize()})- if nil != err {- return err- }- for _, location := range locations {- _ = location.Normalize()- }- return nil+ return err}func calcFieldLocation(collection Collection, field Field, fieldIndex int) {diff --git a/kernel/av/value_location_test.go b/kernel/av/value_location_test.goindex 26560b6774..c298a77b32 100644--- a/kernel/av/value_location_test.go+++ b/kernel/av/value_location_test.go@@ -19,19 +19,18 @@ func TestLocationValueValidationAndDisplay(t *testing.T) {}{{"missing", nil, "", true, false},{"name", &ValueLocation{Name: " Home "}, "Home", false, false},- {"raw only", &ValueLocation{OriginalInput: "source", CoordinateSystem: "wgs84"}, "", true, false},- {"zero unknown", &ValueLocation{Latitude: locationCoordinate(0), Longitude: locationCoordinate(0)}, "0, 0 [unknown]", false, false},- {"negative zero", &ValueLocation{Latitude: locationCoordinate(math.Copysign(0, -1)), Longitude: locationCoordinate(math.Copysign(0, -1))}, "0, 0 [unknown]", false, false},- {"named zero", &ValueLocation{Name: "Home", Latitude: locationCoordinate(0), Longitude: locationCoordinate(0), CoordinateSystem: "wgs84"}, "Home; 0, 0 [WGS84]", false, false},- {"bounds", &ValueLocation{Latitude: locationCoordinate(-90), Longitude: locationCoordinate(180), CoordinateSystem: "gcj02"}, "-90, 180 [GCJ-02]", false, false},- {"bd09", &ValueLocation{Latitude: locationCoordinate(90), Longitude: locationCoordinate(-180), CoordinateSystem: "bd09"}, "90, -180 [BD-09]", false, false},+ {"raw only", &ValueLocation{OriginalInput: "source"}, "", true, false},+ {"zero", &ValueLocation{Latitude: locationCoordinate(0), Longitude: locationCoordinate(0)}, "0, 0 [WGS84]", false, false},+ {"negative zero", &ValueLocation{Latitude: locationCoordinate(math.Copysign(0, -1)), Longitude: locationCoordinate(math.Copysign(0, -1))}, "0, 0 [WGS84]", false, false},+ {"named zero", &ValueLocation{Name: "Home", Latitude: locationCoordinate(0), Longitude: locationCoordinate(0)}, "Home; 0, 0 [WGS84]", false, false},+ {"lower latitude upper longitude", &ValueLocation{Latitude: locationCoordinate(-90), Longitude: locationCoordinate(180)}, "-90, 180 [WGS84]", false, false},+ {"upper latitude lower longitude", &ValueLocation{Latitude: locationCoordinate(90), Longitude: locationCoordinate(-180)}, "90, -180 [WGS84]", false, false},{"latitude missing", &ValueLocation{Longitude: locationCoordinate(0)}, "", false, true},{"longitude missing", &ValueLocation{Latitude: locationCoordinate(0)}, "", false, true},{"latitude range", &ValueLocation{Latitude: locationCoordinate(90.001), Longitude: locationCoordinate(0)}, "", false, true},{"longitude range", &ValueLocation{Latitude: locationCoordinate(0), Longitude: locationCoordinate(-180.001)}, "", false, true},{"nan", &ValueLocation{Latitude: locationCoordinate(math.NaN()), Longitude: locationCoordinate(0)}, "", false, true},{"infinity", &ValueLocation{Latitude: locationCoordinate(0), Longitude: locationCoordinate(math.Inf(1))}, "", false, true},- {"unknown spelling", &ValueLocation{Name: "Home", CoordinateSystem: "WGS84"}, "", false, true},} {t.Run(test.name, func(t *testing.T) {if err := test.location.Normalize(); (err != nil) != test.invalid {@@ -52,7 +51,7 @@ func TestLocationValueValidationAndDisplay(t *testing.T) {}func TestLocationFilterSortAndStatistics(t *testing.T) {- value := &Value{Type: KeyTypeLocation, Location: &ValueLocation{Name: "Home", Latitude: locationCoordinate(0), Longitude: locationCoordinate(0), CoordinateSystem: "wgs84", OriginalInput: "private provenance"}}+ value := &Value{Type: KeyTypeLocation, Location: &ValueLocation{Name: "Home", Latitude: locationCoordinate(0), Longitude: locationCoordinate(0), OriginalInput: "private provenance"}}for _, test := range []struct {operator FilterOperatortext string@@ -83,9 +82,9 @@ func TestLocationFilterSortAndStatistics(t *testing.T) {if value.Compare(other, nil) != 0 {t.Fatal("provenance affected sort order")}- other.Location.CoordinateSystem = "gcj02"+ other.Location.Longitude = locationCoordinate(1)if value.Compare(other, nil) == 0 {- t.Fatal("coordinate system did not distinguish values")+ t.Fatal("coordinates did not distinguish values")}for _, names := range [][2]string{{"Home", "home"}, {"Home", "🏠Home"}, {"A", "B"}, {"", "Home"}} {left := &Value{Type: KeyTypeLocation, Location: &ValueLocation{Name: names[0]}}@@ -163,7 +162,10 @@ func TestLocationPersistedSpecAndValidation(t *testing.T) {invalid := location()invalid.Location.Latitude = locationCoordinate(91)view := &AttributeView{Spec: LocationSpec, KeyValues: []*KeyValues{{Values: []*Value{valid, invalid}}}}- if view.NormalizeLocations() == nil || valid.Location.CoordinateSystem != "" {+ before, _ := json.Marshal(view)+ err := view.NormalizeLocations()+ after, _ := json.Marshal(view)+ if err == nil || string(before) != string(after) {t.Fatal("invalid location partially normalized the database")}data, _ := json.Marshal(view)@@ -200,25 +202,42 @@ func TestLocationConditionalColorsAndAutomationFilters(t *testing.T) {}}-func TestLocationColumnConfigurationAndTemplatePreservation(t *testing.T) {- key := &Key{ID: "location", Type: KeyTypeLocation, Location: &Location{DefaultCoordinateSystem: "gcj02"}}- value := &Value{Type: KeyTypeLocation, Location: &ValueLocation{Name: "Home", Latitude: locationCoordinate(0), Longitude: locationCoordinate(0), CoordinateSystem: "unknown", OriginalInput: "source"}}+func TestLocationTemplatePreservation(t *testing.T) {+ key := &Key{ID: "location", Type: KeyTypeLocation}+ value := &Value{Type: KeyTypeLocation, Location: &ValueLocation{Name: "Home", Latitude: locationCoordinate(0), Longitude: locationCoordinate(0), OriginalInput: "source"}}view := &AttributeView{Spec: LocationSpec, KeyValues: []*KeyValues{{Key: key, Values: []*Value{value}}}}- if err := view.NormalizeLocations(); err != nil || value.Location.CoordinateSystem != "unknown" {- t.Fatalf("column default reinterpreted stored value: %v", err)+ if err := view.NormalizeLocations(); err != nil {+ t.Fatal(err)}copy, err := normalizeNewItemTemplateValue(value, key)if err != nil || !reflect.DeepEqual(copy.Location, value.Location) {- t.Fatalf("template changed location provenance or coordinate system: %v", err)- }- key.Location.DefaultCoordinateSystem = "invalid"- if view.NormalizeLocations() == nil {- t.Fatal("invalid column coordinate system accepted")+ t.Fatalf("template changed location coordinates or provenance: %v", err)}- key.Location.DefaultCoordinateSystem = "wgs84"key.Type = KeyTypeTextview.Spec = PlainTextSpecif !view.HasLocation() || CheckSpec(view) != ErrLocationSpecMismatch {- t.Fatal("converted key location configuration bypassed format gate")+ t.Fatal("retained location value bypassed format gate")+ }+}++func TestLocationJSONRejectsUnknownFieldsWithoutMutation(t *testing.T) {+ for _, payload := range []string{+ `{"latitude":0,"longitude":0,"coordinateSystem":"wgs84"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":"gcj02"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":"bd09"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":"unknown"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":""}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":null}`,+ `{"name":"Changed","unknown":true}`,+ } {+ location := &ValueLocation{Name: "Home", Latitude: locationCoordinate(1), Longitude: locationCoordinate(2), OriginalInput: "source"}+ before, _ := json.Marshal(location)+ if err := json.Unmarshal([]byte(payload), location); err == nil {+ t.Fatalf("unknown location field accepted: %s", payload)+ }+ after, _ := json.Marshal(location)+ if string(before) != string(after) {+ t.Fatalf("rejected location changed existing value: %s", payload)+ }}}diff --git a/kernel/conf/map.go b/kernel/conf/map.godeleted file mode 100644index a5bd6281de..0000000000--- a/kernel/conf/map.go+++ /dev/null@@ -1,145 +0,0 @@-// SiYuan - From thought to insight, with agents-// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.--package conf--import (- "encoding/hex"- "regexp"-- "github.com/siyuan-note/siyuan/kernel/util"-)--const (- MapProviderAMap = "amap"- MapProviderTencent = "tencent"- MapProviderBaidu = "baidu"- MapProviderOpenFreeMap = "openfreemap"-)--// Map 将本机地图服务配置保存在 conf.json 中,不参与数据同步。-// 凭据沿用应用现有的 AES 落盘方式,不提供独立保险库的安全保证。-type Map struct {- Services []*MapService `json:"services"`- Revision string `json:"revision"`-}--type MapService struct {- ID string `json:"id"`- Name string `json:"name"`- Provider string `json:"provider"`- APIKey string `json:"apiKey,omitempty"`- SecurityCode string `json:"securityCode,omitempty"`-- // 清除凭据后保留存在状态,供公开配置 DTO 使用。- hasAPIKey bool- hasSecurityCode bool-}--func NewMap() *Map {- return &Map{Services: []*MapService{}}-}--var mapServiceIDPattern = regexp.MustCompile(`^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$`)--func IsMapServiceID(id string) bool {- return mapServiceIDPattern.MatchString(id)-}--func IsMapProvider(provider string) bool {- switch provider {- case MapProviderAMap, MapProviderTencent, MapProviderBaidu, MapProviderOpenFreeMap:- return true- }- return false-}--func (service *MapService) HasAPIKey() bool {- return service != nil && (service.APIKey != "" || service.hasAPIKey)-}--func (service *MapService) HasSecurityCode() bool {- return service != nil && (service.SecurityCode != "" || service.hasSecurityCode)-}--func (service *MapService) Configured() bool {- if service == nil {- return false- }- switch service.Provider {- case MapProviderAMap:- return service.HasAPIKey() && service.HasSecurityCode()- case MapProviderTencent, MapProviderBaidu:- return service.HasAPIKey()- case MapProviderOpenFreeMap:- return true- }- return false-}--// Masked 返回独立的脱敏副本,保留服务标识和凭据存在状态。-func (config *Map) Masked() *Map {- ret := NewMap()- if config == nil {- return ret- }- ret.Revision = config.Revision- for _, service := range config.Services {- if service == nil {- continue- }- ret.Services = append(ret.Services, &MapService{- ID: service.ID, Name: service.Name, Provider: service.Provider,- hasAPIKey: service.HasAPIKey(), hasSecurityCode: service.HasSecurityCode(),- })- }- return ret-}--func (config *Map) EncryptCredentials() {- if config == nil {- return- }- for _, service := range config.Services {- if service == nil {- continue- }- if service.APIKey != "" {- service.APIKey = util.AESEncrypt(service.APIKey)- }- if service.SecurityCode != "" {- service.SecurityCode = util.AESEncrypt(service.SecurityCode)- }- }-}--func (config *Map) DecryptCredentials() {- if config == nil {- return- }- for _, service := range config.Services {- if service != nil {- service.APIKey = decryptMapCredential(service.APIKey)- service.SecurityCode = decryptMapCredential(service.SecurityCode)- }- }-}--// 无法识别的内容保持原样,避免解密失败破坏已保存的凭据。-func decryptMapCredential(value string) (ret string) {- ret = value- encrypted, err := hex.DecodeString(value)- if err != nil || len(encrypted) == 0 || len(encrypted)%16 != 0 {- return- }- defer func() { _ = recover() }()- decrypted := util.AESDecrypt(value)- if len(decrypted) == 0 {- return- }- if plain, err := hex.DecodeString(string(decrypted)); err == nil {- ret = string(plain)- }- return-}diff --git a/kernel/model/attribute_view_automation.go b/kernel/model/attribute_view_automation.goindex 54189a1563..5acdfa1390 100644--- a/kernel/model/attribute_view_automation.go+++ b/kernel/model/attribute_view_automation.go@@ -536,7 +536,7 @@ func automationValuePatch(value *av.Value) map[string]any {location = &av.ValueLocation{}}ret[field] = map[string]any{"name": location.Name, "latitude": location.Latitude,- "longitude": location.Longitude, "coordinateSystem": location.CoordinateSystem,+ "longitude": location.Longitude,"originalInput": location.OriginalInput}}for _, key := range []string{"id", "keyID", "blockID", "createdAt", "updatedAt", "renderedContent", "hasRenderTemplate"} {diff --git a/kernel/model/attribute_view_items_fts5_test.go b/kernel/model/attribute_view_items_fts5_test.goindex 9aeb76e595..05e4bc3e9f 100644--- a/kernel/model/attribute_view_items_fts5_test.go+++ b/kernel/model/attribute_view_items_fts5_test.go@@ -453,7 +453,7 @@ func setupAttributeViewItemsTest(t *testing.T, bound bool) (*fileOperationTestFi`{"type":"url","url":{"content":"https://example.com"}}`,`{"type":"email","email":{"content":"[email protected]"}}`,`{"type":"phone","phone":{"content":"12345"}}`,- `{"type":"location","location":{"name":"Home","latitude":0,"longitude":120,"coordinateSystem":"gcj02","originalInput":"source"}}`,+ `{"type":"location","location":{"name":"Home","latitude":0,"longitude":120,"originalInput":"source"}}`,} {var value av.Valueif err := json.Unmarshal([]byte(payload), &value); err != nil {diff --git a/kernel/model/attribute_view_location.go b/kernel/model/attribute_view_location.goindex 082cd1b8dc..06976b76d2 100644--- a/kernel/model/attribute_view_location.go+++ b/kernel/model/attribute_view_location.go@@ -3,44 +3,12 @@ package modelimport ("bytes""encoding/json"- "errors""strings""github.com/siyuan-note/siyuan/kernel/av")-func (tx *Transaction) doSetAttrViewColLocationDefaultCoordinateSystem(operation *Operation) *TxErr {- if err := setAttrViewColLocationDefaultCoordinateSystem(operation); nil != err {- return &TxErr{code: TxErrHandleAttributeView, id: operation.AvID, msg: err.Error()}- }- return nil-}--func setAttrViewColLocationDefaultCoordinateSystem(operation *Operation) error {- coordinateSystem, ok := operation.Data.(string)- if !ok || "" == coordinateSystem || !av.IsLocationCoordinateSystem(coordinateSystem) {- return errors.New("invalid location default coordinate system")- }- view, err := av.ParseAttributeView(operation.AvID)- if nil != err {- return err- }- view, err = cloneAttributeViewForFieldMutation(view)- if nil != err {- return err- }- key, err := view.GetKey(operation.ID)- if nil != err {- return err- }- if av.KeyTypeLocation != key.Type {- return errors.New("default coordinate system requires a location field")- }- key.Location = &av.Location{DefaultCoordinateSystem: coordinateSystem}- return av.SaveAttributeView(view)-}--// 更新坐标或坐标系后清除过期来源;名称更新及显式提供的来源保持不变。+// 更新坐标后清除过期来源;名称更新及显式提供的来源保持不变。func normalizeAttributeViewLocationProvenance(previous, updated *av.ValueLocation, patch []byte) {if nil == updated {return@@ -57,14 +25,7 @@ func normalizeAttributeViewLocationProvenance(previous, updated *av.ValueLocatioequalCoordinate := func(left, right *float64) bool {return nil == left && nil == right || nil != left && nil != right && *left == *right}- coordinateSystem := func(value string) string {- if "" == value {- return "unknown"- }- return value- }- if !equalCoordinate(previous.Latitude, updated.Latitude) || !equalCoordinate(previous.Longitude, updated.Longitude) ||- coordinateSystem(previous.CoordinateSystem) != coordinateSystem(updated.CoordinateSystem) {+ if !equalCoordinate(previous.Latitude, updated.Latitude) || !equalCoordinate(previous.Longitude, updated.Longitude) {updated.OriginalInput = ""}}diff --git a/kernel/model/attribute_view_location_config_fts5_test.go b/kernel/model/attribute_view_location_config_fts5_test.godeleted file mode 100644index 50cacbdc7c..0000000000--- a/kernel/model/attribute_view_location_config_fts5_test.go+++ /dev/null@@ -1,89 +0,0 @@-//go:build fts5--package model--import (- "bytes"- "encoding/json"- "os"- "testing"-- "github.com/siyuan-note/siyuan/kernel/av"-)--func TestAttributeViewLocationDefaultPersistenceAndReplay(t *testing.T) {- fixture, before, _, _ := setupAttributeViewItemsTest(t, false)- var locations *av.KeyValues- for _, values := range before.KeyValues {- if values.Key.Type == av.KeyTypeLocation {- locations = values- break- }- }- if locations == nil {- t.Fatal("location fixture missing")- }- locations.Values[0].Location.CoordinateSystem = "unknown"- locations.Values[1].Location = &av.ValueLocation{Name: "Named", OriginalInput: "name source"}- if err := av.SaveAttributeView(before); err != nil {- t.Fatal(err)- }- previousValues, _ := json.Marshal(locations.Values)- keyID := locations.Key.ID- for _, crs := range []string{"gcj02", "wgs84", "bd09", "unknown"} {- tx := &Transaction{fromAPI: true,- DoOperations: []*Operation{{Action: "setAttrViewColLocationDefaultCoordinateSystem", AvID: before.ID, ID: keyID, BlockID: fixture.sourceID, Data: crs}},- UndoOperations: []*Operation{{Action: "setAttrViewColLocationDefaultCoordinateSystem", AvID: before.ID, ID: keyID, BlockID: fixture.sourceID, Data: "unknown"}},- }- if err := PerformTxSync(tx); err != nil {- t.Fatal(err)- }- current := readAttributeViewItemsTest(t, before.ID)- values, _ := current.GetKeyValues(keyID)- actualValues, _ := json.Marshal(values.Values)- if values.Key.Location == nil || values.Key.Location.DefaultCoordinateSystem != crs || !bytes.Equal(previousValues, actualValues) {- t.Fatalf("default changed existing values: %+v", values.Key.Location)- }- data, _ := json.Marshal(current)- imported, err := isolateImportedAttributeViewBindings(data, nil, true)- if err != nil || !bytes.Equal(data, imported) {- t.Fatalf("import reinterpreted location defaults or coordinates: %v", err)- }- if clone, err := cloneAttributeViewForFieldMutation(current); err != nil {- t.Fatal(err)- } else if copied, _ := json.Marshal(clone.KeyValues); !bytes.Equal(copied, mustLocationKeyValuesJSON(t, current.KeyValues)) {- t.Fatal("copy changed location configuration")- }- if err := PerformTxSync(&Transaction{DoOperations: tx.UndoOperations, isReplay: true}); err != nil {- t.Fatal(err)- }- current = readAttributeViewItemsTest(t, before.ID)- key, _ := current.GetKey(keyID)- if key.Location.DefaultCoordinateSystem != "unknown" {- t.Fatal("undo did not restore coordinate system default")- }- }- path := av.GetAttributeViewDataPath(before.ID)- prior, _ := os.ReadFile(path)- for _, data := range []any{"", "WGS84", "invalid", true, nil} {- if err := setAttrViewColLocationDefaultCoordinateSystem(&Operation{AvID: before.ID, ID: keyID, Data: data}); err == nil {- t.Fatalf("invalid column default accepted: %v", data)- }- after, _ := os.ReadFile(path)- if !bytes.Equal(prior, after) {- t.Fatal("invalid default rewrote database")- }- }- if err := setAttrViewColLocationDefaultCoordinateSystem(&Operation{AvID: before.ID, ID: before.GetBlockKey().ID, Data: "wgs84"}); err == nil {- t.Fatal("non-location field accepted location settings")- }-}--func mustLocationKeyValuesJSON(t *testing.T, values []*av.KeyValues) []byte {- t.Helper()- data, err := json.Marshal(values)- if err != nil {- t.Fatal(err)- }- return data-}diff --git a/kernel/model/attribute_view_location_export_test.go b/kernel/model/attribute_view_location_export_test.goindex 02a08c8341..cfc3c74865 100644--- a/kernel/model/attribute_view_location_export_test.go+++ b/kernel/model/attribute_view_location_export_test.go@@ -32,7 +32,7 @@ func TestAttributeViewLocationCSVAndMarkdownExport(t *testing.T) {primary.Values = []*av.Value{{ID: ast.NewNodeID(), KeyID: primary.Key.ID, BlockID: rowID, Type: av.KeyTypeBlock, IsDetached: true, Block: &av.ValueBlock{Content: "Entry"}}}key := av.NewKey(ast.NewNodeID(), "Location", "", av.KeyTypeLocation)view.KeyValues = append(view.KeyValues, &av.KeyValues{Key: key, Values: []*av.Value{{ID: ast.NewNodeID(), KeyID: key.ID, BlockID: rowID, Type: av.KeyTypeLocation,- Location: &av.ValueLocation{Name: "Home", Latitude: modelLocationCoordinate(0), Longitude: modelLocationCoordinate(0), CoordinateSystem: "wgs84", OriginalInput: "private provenance"}}}})+ Location: &av.ValueLocation{Name: "Home", Latitude: modelLocationCoordinate(0), Longitude: modelLocationCoordinate(0), OriginalInput: "private provenance"}}}})view.Views[0].ItemIDs = []string{rowID}view.Views[0].Table.Columns = []*av.ViewTableColumn{{BaseField: &av.BaseField{ID: primary.Key.ID}}, {BaseField: &av.BaseField{ID: key.ID}}}for _, test := range []struct{ name, template, want string }{diff --git a/kernel/model/attribute_view_location_test.go b/kernel/model/attribute_view_location_test.goindex 0ebd94633c..c845245bea 100644--- a/kernel/model/attribute_view_location_test.go+++ b/kernel/model/attribute_view_location_test.go@@ -22,7 +22,7 @@ func TestUpdateAttributeViewLocationPartialAndInvalid(t *testing.T) {value := &av.Value{ID: "20261009000003-locaval", KeyID: keyID, BlockID: itemID,Type: av.KeyTypeLocation, CreatedAt: 100, UpdatedAt: 200,Location: &av.ValueLocation{Name: "Home", Latitude: modelLocationCoordinate(0),- Longitude: modelLocationCoordinate(120), CoordinateSystem: "gcj02", OriginalInput: "original"}}+ Longitude: modelLocationCoordinate(120), OriginalInput: "original"}}view := &av.AttributeView{ID: "20261009000000-locatav", KeyValues: []*av.KeyValues{{Key: &av.Key{ID: "20261009000004-locabky", Type: av.KeyTypeBlock}, Values: []*av.Value{{BlockID: itemID, Type: av.KeyTypeBlock, IsDetached: true, Block: &av.ValueBlock{Content: "Entry"}}}},@@ -37,6 +37,11 @@ func TestUpdateAttributeViewLocationPartialAndInvalid(t *testing.T) {{"location": map[string]any{"latitude": nil}},{"location": map[string]any{"longitude": -181}},{"location": map[string]any{"coordinateSystem": "WGS84"}},+ {"location": map[string]any{"coordinateSystem": "wgs84"}},+ {"location": map[string]any{"coordinateSystem": "unknown"}},+ {"location": map[string]any{"coordinateSystem": "gcj02"}},+ {"location": map[string]any{"coordinateSystem": nil}},+ {"location": map[string]any{"name": "Changed", "unknown": true}},{"location": map[string]any{"latitude": "wrong"}},} {before, _ := json.Marshal(view)@@ -52,7 +57,7 @@ func TestUpdateAttributeViewLocationPartialAndInvalid(t *testing.T) {t.Fatal(err)}if value.Location.Name != "Office" || *value.Location.Latitude != 0 || *value.Location.Longitude != 120 ||- value.Location.CoordinateSystem != "gcj02" || value.Location.OriginalInput != "original" || value.CreatedAt != 100 {+ value.Location.OriginalInput != "original" || value.CreatedAt != 100 {t.Fatalf("partial update lost location data: %+v", value)}if err := update(map[string]any{"location": map[string]any{"latitude": 0}}); err != nil || value.Location.OriginalInput != "original" {@@ -64,9 +69,6 @@ func TestUpdateAttributeViewLocationPartialAndInvalid(t *testing.T) {if err := update(map[string]any{"location": map[string]any{"latitude": 2, "originalInput": "new source"}}); err != nil || value.Location.OriginalInput != "new source" {t.Fatalf("explicit provenance replacement: %v", err)}- if err := update(map[string]any{"location": map[string]any{"coordinateSystem": "wgs84"}}); err != nil || value.Location.OriginalInput != "" {- t.Fatalf("coordinate system change retained stale provenance: %v", err)- }if err := update(map[string]any{"LOCATION": map[string]any{"latitude": 3, "ORIGINALINPUT": "uppercase source"}}); err != nil || value.Location.OriginalInput != "uppercase source" {t.Fatalf("case-insensitive provenance member: %v", err)}@@ -87,26 +89,25 @@ func TestUpdateAttributeViewLocationPartialAndInvalid(t *testing.T) {}}-func TestAttributeViewLocationUnknownProvenance(t *testing.T) {+func TestAttributeViewLocationNoOpProvenance(t *testing.T) {previous := &av.ValueLocation{Latitude: modelLocationCoordinate(0), Longitude: modelLocationCoordinate(0), OriginalInput: "source"}updated := *previous- updated.CoordinateSystem = "unknown"- normalizeAttributeViewLocationProvenance(previous, &updated, []byte(`{"location":{"coordinateSystem":"unknown"}}`))+ normalizeAttributeViewLocationProvenance(previous, &updated, []byte(`{"location":{"latitude":0,"longitude":0}}`))if updated.OriginalInput != "source" {- t.Fatal("equivalent unknown coordinate system cleared provenance")+ t.Fatal("no-op coordinates cleared provenance")}}func TestAttributeViewLocationAutomationReplacement(t *testing.T) {- previous := &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{Name: "Home", Latitude: modelLocationCoordinate(0), Longitude: modelLocationCoordinate(0), CoordinateSystem: "wgs84", OriginalInput: "original"}}+ previous := &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{Name: "Home", Latitude: modelLocationCoordinate(0), Longitude: modelLocationCoordinate(0), OriginalInput: "original"}}next := previous.Clone()next.Location.OriginalInput = "different provenance"if !equalAutomationValues(previous, next) {t.Fatal("provenance triggered an automation value change")}- next.Location.CoordinateSystem = "gcj02"+ next.Location.Longitude = modelLocationCoordinate(1)if equalAutomationValues(previous, next) {- t.Fatal("coordinate system change was ignored")+ t.Fatal("coordinate change was ignored")}for _, desired := range []*av.Value{{Type: av.KeyTypeLocation},@@ -161,7 +162,7 @@ func TestAttributeViewLocationEncryptedRecovery(t *testing.T) {t.Fatalf("legacy authenticated read: %v", err)}value := &av.Value{ID: "20261009000002-locaval", KeyID: locationKeyID, BlockID: "20260921000003-example", Type: av.KeyTypeLocation,- Location: &av.ValueLocation{Name: "Home", Latitude: modelLocationCoordinate(0), Longitude: modelLocationCoordinate(0), CoordinateSystem: "wgs84", OriginalInput: "original"}}+ Location: &av.ValueLocation{Name: "Home", Latitude: modelLocationCoordinate(0), Longitude: modelLocationCoordinate(0), OriginalInput: "original"}}view.KeyValues = append(view.KeyValues, &av.KeyValues{Key: &av.Key{ID: locationKeyID, Name: "Location", Type: av.KeyTypeLocation}, Values: []*av.Value{value}})if err = av.SaveAttributeView(view); err != nil {t.Fatal(err)@@ -216,26 +217,35 @@ func TestAttributeViewLocationImportHistoryValidation(t *testing.T) {if err := os.MkdirAll(filepath.Dir(path), 0755); err != nil {t.Fatal(err)}+ var inputs [][]bytefor _, payload := range []string{`{"latitude":91,"longitude":0}`,`{"latitude":0,"longitude":181}`,`{"latitude":0}`,`{"latitude":0,"longitude":0,"coordinateSystem":"invalid"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":"wgs84"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":"gcj02"}`,+ `{"latitude":0,"longitude":0,"coordinateSystem":"unknown"}`,} {- data := []byte(`{"spec":11,"id":"` + avID + `","keyValues":[{"key":{"type":"location"},"values":[{"type":"location","location":` + payload + `}]}]}`)+ inputs = append(inputs, []byte(`{"spec":13,"id":"`+avID+`","keyValues":[{"key":{"type":"location"},"values":[{"type":"location","location":`+payload+`}]}]}`))+ }+ for _, spec := range []string{"11", "12"} {+ inputs = append(inputs, []byte(`{"spec":`+spec+`,"id":"`+avID+`","keyValues":[{"key":{"type":"location"},"values":[{"type":"location","location":{"latitude":0,"longitude":0}}]}]}`))+ }+ for _, data := range inputs {for _, encryptedTarget := range []bool{false, true} {if _, err := isolateImportedAttributeViewBindings(data, nil, encryptedTarget); err == nil {- t.Fatalf("invalid location imported: %s", payload)+ t.Fatalf("invalid location imported: %s", data)}}if _, err := parseHistoricalAttributeViewData(avID, data); err == nil {- t.Fatalf("invalid history/snapshot location accepted: %s", payload)+ t.Fatalf("invalid history/snapshot location accepted: %s", data)}if err := os.WriteFile(path, data, 0600); err != nil {t.Fatal(err)}if _, _, err := RenderHistoryAttributeView(avID, "", "", "", 1, -1, nil, strconv.FormatInt(created.Unix(), 10)); err == nil {- t.Fatalf("history preview accepted invalid location: %s", payload)+ t.Fatalf("history preview accepted invalid location: %s", data)}after, _ := os.ReadFile(path)if !bytes.Equal(data, after) {diff --git a/kernel/model/attribute_view_map.go b/kernel/model/attribute_view_map.goindex 8b228fd9c5..43febb66a3 100644--- a/kernel/model/attribute_view_map.go+++ b/kernel/model/attribute_view_map.go@@ -19,7 +19,6 @@ import (func newAttributeViewMapLayout(attrView *av.AttributeView, fieldIDs []string) *av.LayoutMap {return &av.LayoutMap{LayoutTable: newAttributeViewListLayout(attrView, fieldIDs),- Settings: av.MapSettings{ShowRecordList: true},}}@@ -184,22 +183,19 @@ func setAttrViewMap(operation *Operation) error {if err != nil {return err}- // 完整设置必须包含三个字段,拒绝凭据和未知字段进入数据库事务。+ // 设置只包含位置字段,拒绝其他内容进入数据库事务。var settings struct {- ServiceID *string `json:"serviceID"`- LocationKeyID *string `json:"locationKeyID"`- ShowRecordList *bool `json:"showRecordList"`+ LocationKeyID *string `json:"locationKeyID"`}decoder := json.NewDecoder(bytes.NewReader(data))decoder.DisallowUnknownFields()if err = decoder.Decode(&settings); err != nil {return err}- if settings.ServiceID == nil || settings.LocationKeyID == nil || settings.ShowRecordList == nil {+ if settings.LocationKeyID == nil {return fmt.Errorf("complete map settings are required")}- next := av.MapSettings{ServiceID: *settings.ServiceID, LocationKeyID: *settings.LocationKeyID,- ShowRecordList: *settings.ShowRecordList}+ next := av.MapSettings{LocationKeyID: *settings.LocationKeyID}if err = next.Validate(); err != nil {return err}diff --git a/kernel/model/attribute_view_map_fts5_test.go b/kernel/model/attribute_view_map_fts5_test.goindex 54e559b8ed..125f17529f 100644--- a/kernel/model/attribute_view_map_fts5_test.go+++ b/kernel/model/attribute_view_map_fts5_test.go@@ -52,7 +52,7 @@ func TestAttributeViewMapSettingsUndoAndEncryptedReplay(t *testing.T) {}}before := view.Map.Settings- after := av.MapSettings{ServiceID: "missing-service", LocationKeyID: ast.NewNodeID(), ShowRecordList: false}+ after := av.MapSettings{LocationKeyID: ast.NewNodeID()}operation := func(settings av.MapSettings) *Operation {return &Operation{Action: "setAttrViewMap", AvID: database.ID, ViewID: view.ID, Data: settings}}diff --git a/kernel/model/attribute_view_map_test.go b/kernel/model/attribute_view_map_test.goindex 354ed39241..5abfe69c91 100644--- a/kernel/model/attribute_view_map_test.go+++ b/kernel/model/attribute_view_map_test.go@@ -29,13 +29,12 @@ func setupMapTest(t *testing.T) (*av.AttributeView, *av.View) {func TestAttributeViewMapSettingsFieldsAndClone(t *testing.T) {attrView, view := setupMapTest(t)- if !view.Map.Settings.ShowRecordList || view.Map.Settings.LocationKeyID != "" || view.Map.Settings.ServiceID != "" {+ if view.Map.Settings.LocationKeyID != "" {t.Fatal("new map must retain an explicit unbound state")}key := av.NewKey(ast.NewNodeID(), "Place", "", av.KeyTypeLocation)addAttributeViewKey(attrView, view, key, "")view.Map.Settings.LocationKeyID = key.ID- view.Map.Settings.ServiceID = "local-service"view.Group = &av.ViewGroup{Field: attrView.KeyValues[1].Key.ID}if getAttributeViewField(view, key.ID) == nil || view.IsGroupView() {t.Fatal("map field or grouping state is incorrect")@@ -66,8 +65,8 @@ func TestAttributeViewMapSettingsFieldsAndClone(t *testing.T) {}copySettings := copy.Views[0].Map.SettingscopyKey, err := copy.GetKey(copySettings.LocationKeyID)- if err != nil || copyKey.Type != av.KeyTypeLocation || copyKey.ID == key.ID || copySettings.ServiceID != "local-service" {- t.Fatal("clone did not remap its own field or preserve local service reference")+ if err != nil || copyKey.Type != av.KeyTypeLocation || copyKey.ID == key.ID {+ t.Fatal("clone did not remap its own location field")}if err = av.SaveAttributeView(attrView); err != nil {t.Fatal(err)@@ -91,7 +90,6 @@ func TestAttributeViewMapFilterSortPageTargetAndExport(t *testing.T) {key := av.NewKey(ast.NewNodeID(), "Place", "", av.KeyTypeLocation)addAttributeViewKey(attrView, view, key, "")view.Map.Settings.LocationKeyID = key.ID- view.Map.Settings.ServiceID = "missing-service"view.PageSize = 10for _, column := range view.Map.Columns {if column.ID == key.ID {@@ -108,8 +106,7 @@ func TestAttributeViewMapFilterSortPageTargetAndExport(t *testing.T) {value := &av.Value{ID: ast.NewNodeID(), KeyID: key.ID, BlockID: id, Type: av.KeyTypeLocation}if i < 120 {zero := 0.0- value.Location = &av.ValueLocation{Name: fmt.Sprintf("Place %03d", i), Latitude: &zero, Longitude: &zero,- CoordinateSystem: "wgs84"}+ value.Location = &av.ValueLocation{Name: fmt.Sprintf("Place %03d", i), Latitude: &zero, Longitude: &zero}}values.Values = append(values.Values, value)}@@ -121,7 +118,7 @@ func TestAttributeViewMapFilterSortPageTargetAndExport(t *testing.T) {t.Fatal(err)}if len(mapped.Rows) != 10 || mapped.RowCount != 120 || mapped.Rows[0].ID != view.ItemIDs[129-page*10] ||- mapped.MapMarkerScope != "page" || mapped.Map.ServiceID != "missing-service" {+ mapped.MapMarkerScope != "page" || mapped.Map.LocationKeyID != key.ID {t.Fatalf("page %d did not follow ordinary filtered/sorted rows: %+v", page, mapped.Table)}if value := mapped.Rows[0].GetValue(key.ID); value == nil || value.Location == nil || *value.Location.Latitude != 0 {@@ -137,7 +134,7 @@ func TestAttributeViewMapFilterSortPageTargetAndExport(t *testing.T) {exported := getAttrViewTable(attrView, view, "")after, _ := json.Marshal(view.Map)if len(exported.Rows) != 125 || exported.Map != nil || !bytes.Equal(before, after) {- t.Fatal("map export must contain all ordinary records without map service data or layout mutations")+ t.Fatal("map export must contain all ordinary records without map layout data or layout mutations")}}@@ -149,7 +146,7 @@ func TestAttributeViewMapInvalidSavePreservesSource(t *testing.T) {path := av.GetAttributeViewDataPath(attrView.ID)before, _ := os.ReadFile(path)for _, malformed := range []any{nil, map[string]any{}, map[string]any{"serviceID": "", "locationKeyID": "", "showRecordList": true, "apiKey": "not-allowed"},- av.MapSettings{ServiceID: "invalid/url"}, av.MapSettings{LocationKeyID: "invalid"}} {+ map[string]any{"locationKeyID": "", "serviceID": "openfreemap"}, map[string]any{"locationKeyID": "", "showRecordList": false}, av.MapSettings{LocationKeyID: "invalid"}} {if err := setAttrViewMap(&Operation{AvID: attrView.ID, ViewID: view.ID, Data: malformed}); err == nil {t.Fatalf("invalid settings accepted: %#v", malformed)}@@ -166,7 +163,7 @@ func TestAttributeViewMapInvalidSavePreservesSource(t *testing.T) {if !bytes.Equal(before, after) {t.Fatal("invalid layout changed source")}- if _, err := isolateImportedAttributeViewBindings([]byte(`{"spec":12,"views":[{"type":"map"}]}`), nil, false); err == nil {+ if _, err := isolateImportedAttributeViewBindings([]byte(`{"spec":13,"views":[{"type":"map"}]}`), nil, false); err == nil {t.Fatal("import accepted a damaged map layout")}}@@ -181,7 +178,7 @@ func testAttributeViewMapImportAndHistoryPreserveBindings(t *testing.T, populateoldHistory := util.HistoryDirutil.HistoryDir = t.TempDir()t.Cleanup(func() { util.HistoryDir = oldHistory })- view.Map.Settings = av.MapSettings{ServiceID: "device-without-service", LocationKeyID: ast.NewNodeID(), ShowRecordList: true}+ view.Map.Settings = av.MapSettings{LocationKeyID: ast.NewNodeID()}if populated {primary := attrView.GetBlockKeyValues()itemID := ast.NewNodeID()@@ -222,15 +219,33 @@ func testAttributeViewMapImportAndHistoryPreserveBindings(t *testing.T, populateif !bytes.Equal(data, after) {t.Fatal("history rendering changed its source")}- for _, spec := range []int{av.LocationSpec, av.MapSpec, av.CurrentSpec + 1} {+ settingsData, err := json.Marshal(view.Map.Settings)+ if err != nil {+ t.Fatal(err)+ }+ var invalidInputs [][]byte+ for _, extra := range []string{`"serviceID":"openfreemap"`, `"serviceID":""`, `"showRecordList":true`, `"showRecordList":false`} {+ legacySettings := []byte(`{"locationKeyID":"` + view.Map.Settings.LocationKeyID + `",` + extra + `}`)+ invalid := bytes.Replace(data, settingsData, legacySettings, 1)+ if bytes.Equal(invalid, data) {+ t.Fatal("legacy map settings fixture did not replace settings")+ }+ invalidInputs = append(invalidInputs, invalid)+ }+ for _, spec := range []int{11, 12, av.MapSpec, av.CurrentSpec + 1} {attrView.Spec = specview.Map.Spec = 1invalid, _ := json.Marshal(attrView)+ invalidInputs = append(invalidInputs, invalid)+ }+ for _, invalid := range invalidInputs {if _, err = parseHistoricalAttributeViewData(attrView.ID, invalid); err == nil {t.Fatal("history accepted malformed or unknown map format")}- if _, err = isolateImportedAttributeViewBindings(invalid, nil, true); err == nil {- t.Fatal("encrypted import accepted malformed or unknown map format")+ for _, encrypted := range []bool{false, true} {+ if _, err = isolateImportedAttributeViewBindings(invalid, nil, encrypted); err == nil {+ t.Fatal("import accepted malformed or unknown map format")+ }}if err = os.WriteFile(path, invalid, 0600); err != nil {t.Fatal(err)diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 4b2ef99243..3f9f2436f5 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -73,7 +73,6 @@ type AppConf struct {Search *conf.Search `json:"search"` // 搜索配置Flashcard *conf.Flashcard `json:"flashcard"` // 闪卡配置AI *conf.AI `json:"ai"` // 人工智能配置- Map *conf.Map `json:"map"` // 本机地图服务配置,不参与数据同步OCR *conf.OCR `json:"ocr"` // 本地图片文字识别Secrets *conf.Secrets `json:"secrets"` // 全局密钥库Variables *conf.Variables `json:"variables"` // 全局变量库@@ -794,8 +793,6 @@ func InitConf() {}Conf.AI.Normalize()Conf.AI.ReconcileModelIDs()- Conf.Map = normalizeMapConfig(Conf.Map)- Conf.Map.DecryptCredentials()if nil == Conf.OIDC {Conf.OIDC = conf.NewOIDC()@@ -1269,9 +1266,6 @@ func (conf *AppConf) marshalForSave() ([]byte, error) {if snapshot.AI != nil {snapshot.AI.EncryptAPIKeys()}- if snapshot.Map != nil {- snapshot.Map.EncryptCredentials()- }if snapshot.OIDC != nil {snapshot.OIDC.EncryptClientSecret()}@@ -1455,7 +1449,6 @@ func GetMaskedConf() (ret *AppConf, err error) {ret.UserData = MaskedUserDataret.MCPOAuth = ""- ret.Map = ret.Map.Masked()ret.CookieKey = ""if "" != ret.AccessAuthCode {ret.AccessAuthCode = MaskedAccessAuthCode@@ -1481,7 +1474,6 @@ func UpdateServerAddrs(serverAddrs []string) bool {// REF: https://github.com/siyuan-note/siyuan/issues/11364func HideConfSecret(c *AppConf) {c.AI = &conf.AI{}- c.Map = conf.NewMap()c.OIDC = &conf.OIDC{}c.MCPOAuth = ""c.CookieKey = ""diff --git a/kernel/model/map.go b/kernel/model/map.godeleted file mode 100644index 044ad63f1e..0000000000--- a/kernel/model/map.go+++ /dev/null@@ -1,158 +0,0 @@-// SiYuan - From thought to insight, with agents-// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.--package model--import (- "errors"- "path/filepath"- "strings"-- "github.com/88250/lute/ast"- "github.com/siyuan-note/filelock"- "github.com/siyuan-note/siyuan/kernel/conf"- "github.com/siyuan-note/siyuan/kernel/util"-)--// MapServiceInput 包含只写凭据:省略时保留相同供应商的值,显式空字符串清除该值。-type MapServiceInput struct {- ID string- Name string- Provider string- APIKey *string- SecurityCode *string-}--func normalizeMapConfig(config *conf.Map) *conf.Map {- if config == nil {- // 仅缺失配置时预置服务;已保存的空列表表示用户没有服务,不再自动补回。- // 内置服务使用稳定标识,使其他设备首次初始化后可以解析同步视图中的同一引用。- return &conf.Map{- Services: []*conf.MapService{{ID: "builtin-openfreemap", Name: "OpenFreeMap", Provider: conf.MapProviderOpenFreeMap}},- Revision: ast.NewNodeID(),- }- }- if config.Services == nil {- config.Services = []*conf.MapService{}- }- return config-}--func (appConf *AppConf) GetMap() *conf.Map {- appConf.m.RLock()- defer appConf.m.RUnlock()- return appConf.Map.Masked()-}--// SetMap 原子替换服务列表。本机尚不存在的指定 ID 也会原样保留,允许补充同步视图引用的服务。-func (appConf *AppConf) SetMap(inputs []MapServiceInput, expectedRevision string) (*conf.Map, error) {- appConf.m.Lock()- defer appConf.m.Unlock()- if util.ReadOnly {- return nil, errors.New("workspace is read-only")- }- currentRevision := ""- if appConf.Map != nil {- currentRevision = appConf.Map.Revision- }- if expectedRevision != currentRevision {- return nil, errors.New("mapSettingsConflict")- }- if len(inputs) > 100 {- return nil, errors.New("too many map services")- }- existing := map[string]*conf.MapService{}- if appConf.Map != nil {- for _, service := range appConf.Map.Services {- if service != nil {- existing[service.ID] = service- }- }- }- next := conf.NewMap()- seen := map[string]bool{}- for _, input := range inputs {- id := input.ID- if id == "" {- id = ast.NewNodeID()- }- if !conf.IsMapServiceID(id) || seen[id] {- return nil, errors.New("invalid or duplicate map service ID")- }- seen[id] = true- name := strings.TrimSpace(input.Name)- if name == "" || len(name) > 256 {- return nil, errors.New("map service name must contain 1 to 256 bytes")- }- if !conf.IsMapProvider(input.Provider) {- return nil, errors.New("unsupported map provider")- }- service := &conf.MapService{ID: id, Name: name, Provider: input.Provider}- if old := existing[id]; old != nil && old.Provider == input.Provider {- service.APIKey, service.SecurityCode = old.APIKey, old.SecurityCode- }- if input.APIKey != nil {- service.APIKey = strings.TrimSpace(*input.APIKey)- }- if input.SecurityCode != nil {- service.SecurityCode = strings.TrimSpace(*input.SecurityCode)- }- if len(service.APIKey) > 4096 || len(service.SecurityCode) > 4096 {- return nil, errors.New("map credential is too long")- }- if service.Provider == conf.MapProviderOpenFreeMap {- if input.APIKey != nil && service.APIKey != "" || input.SecurityCode != nil && service.SecurityCode != "" {- return nil, errors.New("OpenFreeMap does not use credentials")- }- service.APIKey, service.SecurityCode = "", ""- } else if service.Provider != conf.MapProviderAMap {- if input.SecurityCode != nil && service.SecurityCode != "" {- return nil, errors.New("this map provider does not use a security code")- }- service.SecurityCode = ""- }- next.Services = append(next.Services, service)- }- previous := appConf.Map- // 版本号与凭据内容无关,只有成功写入后才对其他调用可见。- next.Revision = ast.NewNodeID()- appConf.Map = next- data, err := appConf.marshalForSave()- if err == nil {- err = filelock.WriteFile(filepath.Join(util.ConfDir, "conf.json"), data)- }- if err != nil {- appConf.Map = previous- return nil, errors.New("could not save map configuration")- }- return next.Masked(), nil-}--// GetMapRuntime 只返回明确选中且已配置的本机服务,不为缺失 ID 回退到其他服务或借用凭据。-func (appConf *AppConf) GetMapRuntime(serviceID string) (*conf.MapService, error) {- appConf.m.RLock()- defer appConf.m.RUnlock()- if !conf.IsMapServiceID(serviceID) {- return nil, errors.New("invalid map service ID")- }- if appConf.Map != nil {- for _, service := range appConf.Map.Services {- if service == nil || service.ID != serviceID {- continue- }- if !service.Configured() {- return nil, errors.New("map service is not configured on this device")- }- ret := *service- if ret.Provider == conf.MapProviderOpenFreeMap {- ret.APIKey = ""- }- if ret.Provider != conf.MapProviderAMap {- ret.SecurityCode = ""- }- return &ret, nil- }- }- return nil, errors.New("map service is missing on this device")-}diff --git a/kernel/model/map_test.go b/kernel/model/map_test.godeleted file mode 100644index 2396ceac76..0000000000--- a/kernel/model/map_test.go+++ /dev/null@@ -1,395 +0,0 @@-package model--import (- "bytes"- "encoding/json"- "os"- "path/filepath"- "reflect"- "strings"- "testing"-- "github.com/siyuan-note/siyuan/kernel/conf"- "github.com/siyuan-note/siyuan/kernel/util"-)--func mapTestString(value string) *string { return &value }--func setMapForTest(app *AppConf, inputs []MapServiceInput) (*conf.Map, error) {- revision := ""- if app.Map != nil {- revision = app.Map.Revision- }- return app.SetMap(inputs, revision)-}--func mapTestConfig(t *testing.T) *AppConf {- t.Helper()- oldDir, oldReadonly := util.ConfDir, util.ReadOnly- util.ConfDir, util.ReadOnly = t.TempDir(), false- t.Cleanup(func() { util.ConfDir, util.ReadOnly = oldDir, oldReadonly })- app := NewAppConf()- app.Map = normalizeMapConfig(app.Map)- return app-}--func TestMapConfigDefaultsAndLegacyNil(t *testing.T) {- var serviceID, previousRevision string- for _, body := range []string{`{}`, `{"map":null}`} {- app := NewAppConf()- if err := json.Unmarshal([]byte(body), app); err != nil {- t.Fatal(err)- }- app.Map = normalizeMapConfig(app.Map)- if len(app.Map.Services) != 1 || app.Map.Revision == "" {- t.Fatalf("missing map configuration was not initialized: %s", body)- }- service := app.Map.Services[0]- if !conf.IsMapServiceID(service.ID) || service.Name != "OpenFreeMap" || service.Provider != conf.MapProviderOpenFreeMap ||- !service.Configured() || service.HasAPIKey() || service.HasSecurityCode() {- t.Fatalf("invalid default map service: %#v", service)- }- if serviceID != "" && serviceID != service.ID {- t.Fatal("default service reference differs across initializations")- }- serviceID = service.ID- if app.Map.Revision == previousRevision {- t.Fatal("separate initializations reused the same revision")- }- previousRevision = app.Map.Revision- before := app.Map- app.Map = normalizeMapConfig(app.Map)- if app.Map != before || len(app.Map.Services) != 1 {- t.Fatal("normalization repeated default initialization")- }- app.Map.DecryptCredentials()- runtime, err := app.GetMapRuntime(service.ID)- if err != nil || runtime.Provider != conf.MapProviderOpenFreeMap || runtime.APIKey != "" || runtime.SecurityCode != "" {- t.Fatal("default service did not resolve without credentials")- }- if _, err := app.GetMapRuntime("missing"); err == nil {- t.Fatal("missing service reference fell back to the default")- }- }-- for _, body := range []string{`{"map":{}}`, `{"map":{"services":null}}`, `{"map":{"services":[]}}`,- `{"map":{"services":[],"revision":"saved-empty"}}`, `{"map":{"revision":"saved-empty"}}`} {- app := NewAppConf()- if err := json.Unmarshal([]byte(body), app); err != nil {- t.Fatal(err)- }- revision := app.Map.Revision- app.Map = normalizeMapConfig(app.Map)- if app.Map.Services == nil || len(app.Map.Services) != 0 || app.Map.Revision != revision {- t.Fatalf("existing empty configuration was replaced: %s", body)- }- }-- var config *conf.Map- config.EncryptCredentials()- config.DecryptCredentials()- if len(config.Masked().Services) != 0 || len(conf.NewMap().Services) != 0 {- t.Fatal("nil map configuration is not safely readable")- }-}--func TestMapConfigInitializationPreservesExistingServices(t *testing.T) {- for _, revision := range []string{"", "saved-revision"} {- app := NewAppConf()- app.Map = &conf.Map{Revision: revision, Services: []*conf.MapService{- {ID: "custom-free", Name: "My map", Provider: conf.MapProviderOpenFreeMap},- {ID: "another-free", Name: "Another map", Provider: conf.MapProviderOpenFreeMap},- {ID: "custom-key", Name: "Custom", Provider: conf.MapProviderAMap, APIKey: "fixture-key", SecurityCode: "fixture-code"},- }}- data, err := app.marshalForSave()- if err != nil {- t.Fatal(err)- }- stored := NewAppConf()- if err = json.Unmarshal(data, stored); err != nil {- t.Fatal(err)- }- stored.Map = normalizeMapConfig(stored.Map)- stored.Map.DecryptCredentials()- if !reflect.DeepEqual(stored.Map, app.Map) {- t.Fatal("initialization changed existing services, credentials, IDs, order, or revision")- }- }-}--func TestMapConfigDefaultPersistsAndDeletedDefaultStaysDeleted(t *testing.T) {- app := mapTestConfig(t)- initial := app.GetMap()- app.Save()- for range 2 {- data, err := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- if err != nil {- t.Fatal(err)- }- app = NewAppConf()- if err = json.Unmarshal(data, app); err != nil {- t.Fatal(err)- }- app.Map = normalizeMapConfig(app.Map)- app.Map.DecryptCredentials()- if !reflect.DeepEqual(app.GetMap(), initial) {- t.Fatal("restart changed the default service or its revision")- }- app.Save()- }- deleted, err := app.SetMap([]MapServiceInput{}, initial.Revision)- if err != nil || len(deleted.Services) != 0 || deleted.Revision == initial.Revision {- t.Fatal("default service deletion failed")- }- for range 2 {- data, err := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- if err != nil {- t.Fatal(err)- }- app = NewAppConf()- if err = json.Unmarshal(data, app); err != nil {- t.Fatal(err)- }- app.Map = normalizeMapConfig(app.Map)- if !reflect.DeepEqual(app.GetMap(), deleted) {- t.Fatal("restart restored the deleted default service")- }- if _, err = app.SetMap([]MapServiceInput{}, initial.Revision); err == nil || err.Error() != "mapSettingsConflict" {- t.Fatal("restart accepted a revision from before the default service was deleted")- }- app.Save()- }-}--func TestMapConfigSettingsResetPreservesServiceInitialization(t *testing.T) {- settingsResetTestEnvironment(t)- Conf.Map = normalizeMapConfig(Conf.Map)- for _, remove := range []bool{false, true} {- if remove {- if _, err := Conf.SetMap([]MapServiceInput{}, Conf.Map.Revision); err != nil {- t.Fatal(err)- }- }- before := Conf.GetMap()- if err := ResetSettings(); err != nil {- t.Fatal(err)- }- data, err := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- if err != nil {- t.Fatal(err)- }- stored := NewAppConf()- if err = json.Unmarshal(data, stored); err != nil {- t.Fatal(err)- }- stored.Map = normalizeMapConfig(stored.Map)- if !reflect.DeepEqual(before, Conf.GetMap()) || !reflect.DeepEqual(before, stored.GetMap()) {- t.Fatal("settings reset changed map services or restored a deleted default")- }- }-}--func TestMapConfigCredentialsAndStableReferences(t *testing.T) {- app := mapTestConfig(t)- inputs := []MapServiceInput{- {ID: "synced-view-service", Name: " AMap ", Provider: conf.MapProviderAMap, APIKey: mapTestString("test-amap-key"), SecurityCode: mapTestString("test-amap-code")},- {Name: "Free", Provider: conf.MapProviderOpenFreeMap},- {ID: "second", Name: "Tencent", Provider: conf.MapProviderTencent, APIKey: mapTestString("test-tencent-key")},- }- masked, err := setMapForTest(app, inputs)- if err != nil {- t.Fatal(err)- }- generatedID := masked.Services[1].ID- if !conf.IsMapServiceID(generatedID) || masked.Services[0].ID != "synced-view-service" || masked.Services[0].Name != "AMap" {- t.Fatal("stable IDs or normalization changed")- }- for _, service := range masked.Services {- if service.APIKey != "" || service.SecurityCode != "" || !service.Configured() {- t.Fatal("save returned a credential or lost presence metadata")- }- }- if !masked.Services[0].HasSecurityCode() || !masked.Services[0].HasAPIKey() || masked.Services[1].HasAPIKey() {- t.Fatal("masked credential metadata is inaccurate")- }- for _, id := range []string{"", "missing", "https://invalid.example", " space "} {- if _, err = app.GetMapRuntime(id); err == nil {- t.Fatalf("missing or malformed ID resolved: %q", id)- }- }- selected, err := app.GetMapRuntime("second")- if err != nil || selected.APIKey != "test-tencent-key" || selected.SecurityCode != "" {- t.Fatal("runtime did not select only the requested provider")- }- selected.APIKey = "changed-copy"- if app.Map.Services[2].APIKey != "test-tencent-key" {- t.Fatal("runtime exposed mutable active configuration")- }- inputs = []MapServiceInput{- {ID: generatedID, Name: "Free renamed", Provider: conf.MapProviderOpenFreeMap},- {ID: "synced-view-service", Name: "Renamed", Provider: conf.MapProviderAMap},- }- if _, err = setMapForTest(app, inputs); err != nil {- t.Fatal(err)- }- if app.Map.Services[1].APIKey != "test-amap-key" || app.Map.Services[1].SecurityCode != "test-amap-code" {- t.Fatal("omitted credentials did not survive rename/reorder")- }- if _, err = app.GetMapRuntime("second"); err == nil {- t.Fatal("removed service still resolved")- }- inputs[1].SecurityCode = mapTestString("")- if _, err = setMapForTest(app, inputs); err != nil {- t.Fatal(err)- }- if app.GetMap().Services[1].Configured() || app.Map.Services[1].APIKey != "test-amap-key" {- t.Fatal("explicit secret clear failed or cleared an omitted key")- }- if _, err = app.GetMapRuntime("synced-view-service"); err == nil {- t.Fatal("incomplete AMap service resolved")- }- inputs[1].Provider, inputs[1].SecurityCode = conf.MapProviderBaidu, nil- if _, err = setMapForTest(app, inputs); err != nil {- t.Fatal(err)- }- if app.Map.Services[1].APIKey != "" || app.Map.Services[1].SecurityCode != "" {- t.Fatal("provider change retained credentials")- }- inputs[1].APIKey = mapTestString("test-baidu-key")- if _, err = setMapForTest(app, inputs); err != nil {- t.Fatal(err)- }- if selected, err = app.GetMapRuntime("synced-view-service"); err != nil || selected.APIKey != "test-baidu-key" {- t.Fatal("replacement provider credentials were not usable")- }- if _, err = setMapForTest(app, []MapServiceInput{}); err != nil || len(app.Map.Services) != 0 {- t.Fatal("empty full list did not remove services")- }- if _, err = setMapForTest(app, []MapServiceInput{{ID: "synced-view-service", Name: "Configure missing reference", Provider: conf.MapProviderOpenFreeMap}}); err != nil || app.Map.Services[0].ID != "synced-view-service" {- t.Fatal("cross-device missing reference could not be explicitly configured")- }-}--func TestMapConfigRejectsInvalidChangesAtomically(t *testing.T) {- app := mapTestConfig(t)- input := MapServiceInput{ID: "existing", Name: "Original", Provider: conf.MapProviderAMap, APIKey: mapTestString("test-key"), SecurityCode: mapTestString("test-code")}- if _, err := setMapForTest(app, []MapServiceInput{input}); err != nil {- t.Fatal(err)- }- before, _ := json.Marshal(app.Map)- disk, _ := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- invalid := []MapServiceInput{- {ID: "../bad", Name: "Bad", Provider: conf.MapProviderAMap},- {ID: strings.Repeat("a", 129), Name: "Bad", Provider: conf.MapProviderAMap},- {ID: "existing", Name: "Bad", Provider: conf.MapProviderBaidu},- {ID: "next", Name: " ", Provider: conf.MapProviderAMap},- {ID: "next", Name: "Bad", Provider: "https://unknown.example"},- {ID: "next", Name: "Bad", Provider: conf.MapProviderOpenFreeMap, APIKey: mapTestString("not-allowed")},- {ID: "next", Name: "Bad", Provider: conf.MapProviderTencent, SecurityCode: mapTestString("not-allowed")},- {ID: "next", Name: "Bad", Provider: conf.MapProviderAMap, APIKey: mapTestString(strings.Repeat("x", 4097))},- }- for _, value := range invalid {- if _, err := setMapForTest(app, []MapServiceInput{input, value}); err == nil {- t.Fatalf("invalid input accepted: ID=%q, provider=%q", value.ID, value.Provider)- }- after, _ := json.Marshal(app.Map)- stored, _ := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- if !bytes.Equal(before, after) || !bytes.Equal(disk, stored) {- t.Fatal("rejected full list partially mutated configuration")- }- }- util.ReadOnly = true- if _, err := setMapForTest(app, nil); err == nil || len(app.Map.Services) != 1 {- t.Fatal("read-only configuration was changed")- }- util.ReadOnly = false- util.ConfDir = filepath.Join(util.ConfDir, "conf.json") // 已有文件不能作为父目录。- if _, err := setMapForTest(app, nil); err == nil || len(app.Map.Services) != 1 {- t.Fatal("failed persistence left a changed active configuration")- }-}--func TestMapConfigEncryptedStorageAndMaskedReads(t *testing.T) {- app := mapTestConfig(t)- app.Map = &conf.Map{Services: []*conf.MapService{{ID: "local", Name: "Local", Provider: conf.MapProviderAMap, APIKey: "map-test-private-key", SecurityCode: "map-test-private-code"}}}- before, _ := json.Marshal(app.Map)- app.Save()- app.Save()- data, err := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))- if err != nil || bytes.Contains(data, []byte("map-test-private")) {- t.Fatal("map credentials were not encrypted for storage")- }- after, _ := json.Marshal(app.Map)- if !bytes.Equal(before, after) {- t.Fatal("save mutated runtime credentials")- }- stored := NewAppConf()- if err = json.Unmarshal(data, stored); err != nil {- t.Fatal(err)- }- stored.Map.DecryptCredentials()- if !reflect.DeepEqual(stored.Map, app.Map) {- t.Fatal("stored map credentials did not round-trip")- }- oldConf := Conf- Conf = app- t.Cleanup(func() { Conf = oldConf })- masked, err := GetMaskedConf()- if err != nil {- t.Fatal(err)- }- serialized, _ := json.Marshal(masked)- if bytes.Contains(serialized, []byte("map-test-private")) || !masked.Map.Services[0].Configured() {- t.Fatal("masked configuration leaked credentials or lost configured status")- }- masked.System = &conf.System{}- HideConfSecret(masked)- if len(masked.Map.Services) != 0 {- t.Fatal("published configuration retained device service metadata")- }- if app.Map.Services[0].APIKey != "map-test-private-key" {- t.Fatal("masked read changed active credentials")- }-}--func TestMapConfigDecryptPreservesUnrecognizedInput(t *testing.T) {- for _, value := range []string{"", "legacy-plain-key", "0011", "00000000000000000000000000000000"} {- config := &conf.Map{Services: []*conf.MapService{nil, {APIKey: value, SecurityCode: value}}}- config.DecryptCredentials()- if config.Services[1].APIKey != value || config.Services[1].SecurityCode != value {- t.Fatal("unrecognized stored credential was silently destroyed")- }- }-}--func TestMapConfigRevisionPreventsStaleWholeListWrites(t *testing.T) {- app := mapTestConfig(t)- initialRevision := app.Map.Revision- inputs := []MapServiceInput{{ID: "new-service", Name: "New service", Provider: conf.MapProviderTencent, APIKey: mapTestString("preserved-concurrent-key")}}- first, err := app.SetMap(inputs, initialRevision)- if err != nil || first.Revision == "" || first.Revision == initialRevision || first.Revision != app.Map.Revision {- t.Fatal("successful map write did not publish a new independent revision")- }- path := filepath.Join(util.ConfDir, "conf.json")- before, err := os.ReadFile(path)- if err != nil {- t.Fatal(err)- }- if _, err = app.SetMap([]MapServiceInput{}, initialRevision); err == nil || err.Error() != "mapSettingsConflict" {- t.Fatal("stale whole-list write did not report a conflict")- }- after, err := os.ReadFile(path)- if err != nil || !bytes.Equal(before, after) || len(app.Map.Services) != 1 || app.Map.Services[0].APIKey != "preserved-concurrent-key" || app.Map.Revision != first.Revision {- t.Fatal("stale write deleted another window's service or credential")- }- inputs[0].Name, inputs[0].APIKey = "Rename", nil- second, err := app.SetMap(inputs, first.Revision)- if err != nil || second.Revision == first.Revision || app.Map.Services[0].APIKey != "preserved-concurrent-key" {- t.Fatal("current revision could not save without replacing omitted credentials")- }- data, err := os.ReadFile(path)- stored := NewAppConf()- if err != nil || json.Unmarshal(data, stored) != nil || stored.Map.Revision != second.Revision {- t.Fatal("map revision was not persisted with its service list")- }-}diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 8416cb4e4a..8ead6d3176 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -400,8 +400,6 @@ func performTx(tx *Transaction) (ret *TxErr) {ret = tx.doSetAttrViewColumnDesc(op)case "setAttrViewColAttributePanelVisibility":ret = tx.doSetAttrViewColAttributePanelVisibility(op)- case "setAttrViewColLocationDefaultCoordinateSystem":- ret = tx.doSetAttrViewColLocationDefaultCoordinateSystem(op)case "insertAttrViewBlock":ret = tx.doInsertAttrViewBlock(op)case "removeAttrViewBlock":diff --git a/kernel/server/map_host.go b/kernel/server/map_host.goindex 75d0076dee..bce7a4bc2c 100644--- a/kernel/server/map_host.go+++ b/kernel/server/map_host.go@@ -58,19 +58,6 @@ func mapHostPolicy(host, provider string) (string, bool) {images += " https://tiles.openfreemap.org"styles += " " + local + "maplibre-gl.css"workers = "blob:"- case "amap":- scripts += " https://webapi.amap.com https://restapi.amap.com https://jsapi-service.amap.com"- workers = "blob:"- connect = "https://webapi.amap.com https://restapi.amap.com https://vdata.amap.com https://jsapi.amap.com"- images += " https://webapi.amap.com https://a.amap.com https://*.is.autonavi.com"- case "tencent":- scripts += " https://map.qq.com"- connect = "https://map.qq.com https://apis.map.qq.com https://*.map.qq.com"- images += " https://map.qq.com https://*.map.qq.com"- case "baidu":- scripts += " https://api.map.baidu.com"- connect = "https://api.map.baidu.com https://*.map.bdimg.com https://*.bdimg.com"- images += " https://api.map.baidu.com https://*.map.bdimg.com https://*.bdimg.com https://*.map.baidu.com"default:return "", false}diff --git a/kernel/server/map_host_test.go b/kernel/server/map_host_test.goindex 53a791e41b..ae0ffab091 100644--- a/kernel/server/map_host_test.go+++ b/kernel/server/map_host_test.go@@ -17,16 +17,13 @@ import ()func TestMapHostPolicy(t *testing.T) {- for _, provider := range []string{"openfreemap", "amap", "tencent", "baidu"} {+ for _, provider := range []string{"openfreemap"} {policy, ok := mapHostPolicy("localhost:6806", provider)if !ok || !strings.Contains(policy, "sandbox allow-scripts;") ||strings.Contains(policy, "allow-same-origin") || strings.Contains(policy, "'unsafe-eval'") ||strings.Contains(policy, "connect-src 'self'") || !strings.Contains(policy, "form-action 'none'") {t.Fatalf("unsafe policy for %s: %s", provider, policy)}- if provider != "openfreemap" && strings.Contains(policy, "tiles.openfreemap.org") {- t.Fatalf("provider sources leaked into %s", provider)- }wrapper, valid := mapWrapperPolicy("localhost:6806", provider)if !valid || !strings.Contains(wrapper, "frame-src localhost:6806/stage/map/index.html;") ||!strings.Contains(wrapper, "script-src localhost:6806/stage/build/map/wrapper.js;") ||@@ -52,33 +49,22 @@ func TestMapHostPolicy(t *testing.T) {}}-func TestMapHostAMapRestrictedWorkersAndScripts(t *testing.T) {- policy, ok := mapHostPolicy("localhost:6806", "amap")- if !ok {- t.Fatal("AMap policy unavailable")- }- directives := map[string]string{}- for _, part := range strings.Split(policy, ";") {- fields := strings.Fields(part)- if len(fields) > 0 {- directives[fields[0]] = strings.Join(fields[1:], " ")+func TestMapHostRejectsRemovedProviders(t *testing.T) {+ for _, provider := range []string{"amap", "tencent", "baidu", "custom", ""} {+ if _, ok := mapHostPolicy("localhost:6806", provider); ok {+ t.Fatalf("accepted provider %q", provider)}- }- for name, want := range map[string]string{- "script-src": "localhost:6806/stage/build/map/host.js https://webapi.amap.com https://restapi.amap.com https://jsapi-service.amap.com",- "worker-src": "blob:",- "connect-src": "https://webapi.amap.com https://restapi.amap.com https://vdata.amap.com https://jsapi.amap.com",- "frame-src": "'none'",- "sandbox": "allow-scripts",- } {- if directives[name] != want {- t.Fatalf("unexpected %s: %s", name, directives[name])+ if _, ok := mapWrapperPolicy("localhost:6806", provider); ok {+ t.Fatalf("accepted wrapper provider %q", provider)}}- for _, provider := range []string{"tencent", "baidu"} {- other, _ := mapHostPolicy("localhost:6806", provider)- if !strings.Contains(other, "worker-src 'none'") || strings.Contains(other, "restapi.amap.com") {- t.Fatalf("AMap permissions leaked into %s", provider)+ policy, ok := mapHostPolicy("localhost:6806", "openfreemap")+ if !ok || !strings.Contains(policy, "https://tiles.openfreemap.org") {+ t.Fatal("missing built-in tile source")+ }+ for _, host := range []string{"amap.com", "autonavi.com", "qq.com", "baidu.com", "bdimg.com"} {+ if strings.Contains(policy, host) {+ t.Fatalf("retained removed host %s", host)}}}@@ -103,7 +89,7 @@ func TestMapHostStaticIsolationHeaders(t *testing.T) {router.Static("/stage", filepath.Join(util.WorkingDir, "stage"))router.GET("/api/conf", func(c *gin.Context) { c.String(200, "ordinary route") })for _, path := range []string{"/stage/map/index.html?provider=openfreemap", "/stage/build/map/host.js",- "/stage/map/wrapper.html?provider=amap", "/stage/build/map/wrapper.js"} {+ "/stage/map/wrapper.html?provider=openfreemap", "/stage/build/map/wrapper.js"} {response := httptest.NewRecorder()router.ServeHTTP(response, httptest.NewRequest(http.MethodGet, path, nil))if response.Code != 200 || response.Body.String() != "fixture" ||@@ -120,12 +106,12 @@ func TestMapHostStaticIsolationHeaders(t *testing.T) {t.Fatal("missing wrapper navigation boundary")}}- for _, path := range []string{"/stage/map/index.html", "/stage/map/index.html?provider=custom", "/stage/map/wrapper.html", "/stage/map/wrapper.html?provider=custom",- "/stage/map/private.json", "/stage/build/map/host.js.map", "/stage/map%2findex.html?provider=amap", "/stage/Map/wrapper.html?provider=amap",- "/stage/.%2fmap/index.html?provider=amap", "/stage/%2fmap/index.html?provider=amap",- "/stage/anything/..%2fmap/index.html?provider=amap", "/stage/build/.%2fmap/host.js",- "/stage/%5cmap%5cindex.html?provider=amap", "/stage/Map/index.html?provider=amap",- "/stage/build/MAP/host.js", "/stage/map./index.html?provider=amap", "/stage/map%20/index.html?provider=amap"} {+ for _, path := range []string{"/stage/map/index.html", "/stage/map/index.html?provider=custom", "/stage/map/index.html?provider=amap", "/stage/map/wrapper.html?provider=tencent", "/stage/map/index.html?provider=baidu", "/stage/map/wrapper.html", "/stage/map/wrapper.html?provider=custom",+ "/stage/map/private.json", "/stage/build/map/host.js.map", "/stage/map%2findex.html?provider=openfreemap", "/stage/Map/wrapper.html?provider=openfreemap",+ "/stage/.%2fmap/index.html?provider=openfreemap", "/stage/%2fmap/index.html?provider=openfreemap",+ "/stage/anything/..%2fmap/index.html?provider=openfreemap", "/stage/build/.%2fmap/host.js",+ "/stage/%5cmap%5cindex.html?provider=openfreemap", "/stage/Map/index.html?provider=openfreemap",+ "/stage/build/MAP/host.js", "/stage/map./index.html?provider=openfreemap", "/stage/map%20/index.html?provider=openfreemap"} {response := httptest.NewRecorder()router.ServeHTTP(response, httptest.NewRequest(http.MethodGet, path, nil))if response.Code == http.StatusOK {diff --git a/kernel/sql/av.go b/kernel/sql/av.goindex ffc7794637..bdf89e61b2 100644--- a/kernel/sql/av.go+++ b/kernel/sql/av.go@@ -568,7 +568,7 @@ func filterNotFoundAttrViewItems(keyValuesMap map[string][]*av.KeyValues) {}func fillAttributeViewBaseValue(baseValue *av.BaseValue, fieldID, itemID string, fieldNumberFormat av.NumberFormat,- fieldDateFormat av.DateDisplayFormat, fieldTemplate string, fieldDateIsTime bool, fieldLocation *av.Location) {+ fieldDateFormat av.DateDisplayFormat, fieldTemplate string, fieldDateIsTime bool) {switch baseValue.ValueType {case av.KeyTypeNumber: // 格式化数字if nil != baseValue.Value && nil != baseValue.Value.Number && baseValue.Value.Number.IsNotEmpty {@@ -589,9 +589,6 @@ func fillAttributeViewBaseValue(baseValue *av.BaseValue, fieldID, itemID string,if nil == baseValue.Value {baseValue.Value = av.GetAttributeViewDefaultValue(baseValue.ID, fieldID, itemID, baseValue.ValueType, fieldDateIsTime)- if av.KeyTypeLocation == baseValue.ValueType && nil != fieldLocation {- baseValue.Value.Location.CoordinateSystem = fieldLocation.DefaultCoordinateSystem- }} else {FillAttributeViewNilValue(baseValue.Value, baseValue.ValueType)}diff --git a/kernel/sql/av_gallery.go b/kernel/sql/av_gallery.goindex 1b23e4f6b4..dcf5540f43 100644--- a/kernel/sql/av_gallery.go+++ b/kernel/sql/av_gallery.go@@ -73,7 +73,6 @@ func renderAttributeViewGallery(attrView *av.AttributeView, view *av.View, queryRelation: key.Relation,Rollup: key.Rollup,Date: key.Date,- Location: key.Location,Created: key.Created,Updated: key.Updated,},@@ -138,7 +137,7 @@ func renderAttributeViewGallery(attrView *av.AttributeView, view *av.View, queryfiledDateIsTime = field.Date.FillSpecificTime}fillAttributeViewBaseValue(fieldValue.BaseValue, field.ID, cardID, field.NumberFormat, field.DateFormat,- field.Template, filedDateIsTime, field.Location)+ field.Template, filedDateIsTime)galleryCard.Values = append(galleryCard.Values, fieldValue)}diff --git a/kernel/sql/av_kanban.go b/kernel/sql/av_kanban.goindex ea2c9f7be5..127b675347 100644--- a/kernel/sql/av_kanban.go+++ b/kernel/sql/av_kanban.go@@ -67,7 +67,6 @@ func renderAttributeViewKanban(attrView *av.AttributeView, view *av.View, queryRelation: key.Relation,Rollup: key.Rollup,Date: key.Date,- Location: key.Location,Created: key.Created,Updated: key.Updated,},@@ -132,7 +131,7 @@ func renderAttributeViewKanban(attrView *av.AttributeView, view *av.View, queryfiledDateIsTime = field.Date.FillSpecificTime}fillAttributeViewBaseValue(fieldValue.BaseValue, field.ID, cardID, field.NumberFormat, field.DateFormat,- field.Template, filedDateIsTime, field.Location)+ field.Template, filedDateIsTime)kanbanCard.Values = append(kanbanCard.Values, fieldValue)}diff --git a/kernel/sql/av_location_test.go b/kernel/sql/av_location_test.goindex 1856c7929e..afa9478c81 100644--- a/kernel/sql/av_location_test.go+++ b/kernel/sql/av_location_test.go@@ -1,33 +1,33 @@package sqlimport (+ "reflect""testing""github.com/siyuan-note/siyuan/kernel/av")-func TestLocationColumnDefaultOnlyFillsMissingCells(t *testing.T) {+func TestLocationRenderFillsEmptyCellsAndPreservesStoredValues(t *testing.T) {+ zero := 0.0for _, test := range []struct {name stringvalue *av.Value- want string+ want *av.ValueLocation}{- {"missing", nil, "gcj02"},- {"nil payload", &av.Value{Type: av.KeyTypeLocation}, ""},- {"empty", &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{}}, ""},- {"name only", &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{Name: "Home"}}, ""},- {"unknown", &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{CoordinateSystem: "unknown"}}, "unknown"},- {"explicit", &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{CoordinateSystem: "wgs84"}}, "wgs84"},+ {"missing", nil, &av.ValueLocation{}},+ {"nil payload", &av.Value{Type: av.KeyTypeLocation}, &av.ValueLocation{}},+ {"empty", &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{}}, &av.ValueLocation{}},+ {"name only", &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{Name: "Home"}}, &av.ValueLocation{Name: "Home"}},+ {"zero coordinates", &av.Value{Type: av.KeyTypeLocation, Location: &av.ValueLocation{Latitude: &zero, Longitude: &zero, OriginalInput: "0,0"}},+ &av.ValueLocation{Latitude: &zero, Longitude: &zero, OriginalInput: "0,0"}},} {t.Run(test.name, func(t *testing.T) {base := &av.BaseValue{ID: "20261009000000-locaval", ValueType: av.KeyTypeLocation, Value: test.value}- fillAttributeViewBaseValue(base, "location", "20261009000000-locarow", "", "", "", false, &av.Location{DefaultCoordinateSystem: "gcj02"})- if base.Value.Location.CoordinateSystem != test.want {- t.Fatalf("default overwrote existing location: %+v", base.Value.Location)- }- fillAttributeViewBaseValue(base, "location", "20261009000000-locarow", "", "", "", false, &av.Location{DefaultCoordinateSystem: "bd09"})- if base.Value.Location.CoordinateSystem != test.want {- t.Fatal("changing the column default reinterpreted existing cell")+ for range 2 {+ fillAttributeViewBaseValue(base, "location", "20261009000000-locarow", "", "", "", false)+ if base.Value == nil || !reflect.DeepEqual(base.Value.Location, test.want) {+ t.Fatalf("render changed stored location: %+v", base.Value)+ }}})}diff --git a/kernel/sql/av_rollup_target_test.go b/kernel/sql/av_rollup_target_test.goindex 8ecbd38d17..c851f34f66 100644--- a/kernel/sql/av_rollup_target_test.go+++ b/kernel/sql/av_rollup_target_test.go@@ -352,7 +352,7 @@ func newNestedRollupTestLeaf(typ av.KeyType) (*av.AttributeView, *av.Key) {if typ == av.KeyTypeNumber {value.Number = &av.ValueNumber{Content: float64(row + 1), IsNotEmpty: true}} else if typ == av.KeyTypeLocation {- value.Location = &av.ValueLocation{Name: fmt.Sprintf("fresh-%d", row), CoordinateSystem: "unknown", OriginalInput: "source"}+ value.Location = &av.ValueLocation{Name: fmt.Sprintf("fresh-%d", row), OriginalInput: "source"}} else {value.Text = &av.ValueText{Content: fmt.Sprintf("fresh-%d", row)}}diff --git a/kernel/sql/av_table.go b/kernel/sql/av_table.goindex 4567cd6bfc..77847a142c 100644--- a/kernel/sql/av_table.go+++ b/kernel/sql/av_table.go@@ -73,7 +73,6 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View, query sRelation: key.Relation,Rollup: key.Rollup,Date: key.Date,- Location: key.Location,Created: key.Created,Updated: key.Updated,},@@ -128,7 +127,7 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View, query sfiledDateIsTime = col.Date.FillSpecificTime}fillAttributeViewBaseValue(tableCell.BaseValue, col.ID, rowID, col.NumberFormat, col.DateFormat, col.Template,- filedDateIsTime, col.Location)+ filedDateIsTime)tableRow.Cells = append(tableRow.Cells, tableCell)}ret.Rows = append(ret.Rows, &tableRow)