// ╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗ // ╚══╗ ╔══╝║ ╔╗ ╔╗ ║║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═══╗ ║╚══╗ ╔══╝║ ╔═════╝ // ║ ║ ║ ║║ ║║ ║║ ╚═══╝ ║║ ║ ║ ║║ ╚═══╝ ║ ║ ║ ║ ╚═════╗ // ║ ║ ║ ║║ ║║ ║║ ╔═════╝║ ║ ║ ║║ ╔═╗ ╔═╝ ║ ║ ╚═════╗ ║ // ╔══╝ ╚══╗║ ║║ ║║ ║║ ║ ║ ╚═══╝ ║║ ║ ║ ╚═╗ ║ ║ ╔═════╝ ║ // ╚═══════╝╚═╝╚═╝╚═╝╚═╝ ╚═══════╝╚═╝ ╚═══╝ ╚═╝ ╚═══════╝ import * as userErrors from '../../errors/user-errors.js'; import * as utilityEngine from '@xyz.warpmatter.com/utility-engine'; // ╔═══════╗╔═══════╗ // ╚══╗ ╔══╝╚╗ ╔══╗ ║ // ║ ║ ║ ║ ║ ║ // ║ ║ ║ ║ ║ ║ // ╔══╝ ╚══╗╔╝ ╚══╝ ║ // ╚═══════╝╚═══════╝ export function validateUserId(value: any) { if (!isValidUserId(value)) { userErrors.throwInvalidAbsorbLmsUserIdError(); } } export function isValidUserId(value: any): value is string { return utilityEngine.isFilledString(value); }