// ╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗ // ╚══╗ ╔══╝║ ╔╗ ╔╗ ║║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═══╗ ║╚══╗ ╔══╝║ ╔═════╝ // ║ ║ ║ ║║ ║║ ║║ ╚═══╝ ║║ ║ ║ ║║ ╚═══╝ ║ ║ ║ ║ ╚═════╗ // ║ ║ ║ ║║ ║║ ║║ ╔═════╝║ ║ ║ ║║ ╔═╗ ╔═╝ ║ ║ ╚═════╗ ║ // ╔══╝ ╚══╗║ ║║ ║║ ║║ ║ ║ ╚═══╝ ║║ ║ ║ ╚═╗ ║ ║ ╔═════╝ ║ // ╚═══════╝╚═╝╚═╝╚═╝╚═╝ ╚═══════╝╚═╝ ╚═══╝ ╚═╝ ╚═══════╝ import * as connectionErrors from '../../errors/connection-errors.js'; import * as connectionCaches from '../../caches/connection-caches.js'; // ╔═╗ ╔═══════╗╔══════╗ ╔═══════╗╔═╗ // ║ ║ ║ ╔═══╗ ║║ ╔══╗ ║ ║ ╔═════╝║ ║ // ║ ║ ║ ╚═══╝ ║║ ╚══╝ ╚╗║ ╚═════╗║ ║ // ║ ║ ║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═════╝║ ║ // ║ ╚═════╗║ ║ ║ ║║ ╚═══╝ ║║ ╚═════╗║ ╚═════╗ // ╚═══════╝╚═╝ ╚═╝╚═══════╝╚═══════╝╚═══════╝ export function validateRegisteredConnectionLabel(value: any) { if (!isRegisteredConnectionLabel(value)) { connectionErrors.throwUnregisteredConnectionLabelError(); } } export function isRegisteredConnectionLabel(value: any) { return connectionCaches.isCachedConnectionLabel(value); }