export function readStatusIssueFields( value: unknown, fields: readonly TField[], ): Record | null { if (!value || typeof value !== "object") { return null; } const record = value as Record; const result = {} as Record; for (const field of fields) { result[field] = record[field]; } return result; } export function coerceStatusIssueAccountId(value: unknown): string | undefined { return typeof value === "string" ? value : typeof value === "number" ? String(value) : undefined; }