// Get the actual API response const authResp = await fetch('http://100.81.138.77:8000/api/v1/auth/login', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ username: 'admin', password: 'admin123' }) }); const { access_token } = await authResp.json(); const resp = await fetch('http://100.81.138.77:8000/api/v1/configuration/action-mappings', { headers: { 'Authorization': `Bearer ${access_token}` } }); const data = await resp.json(); const firstMapping = data.mappings[0]; console.log('TYPE ANALYSIS - First Action Mapping:'); console.log('='.repeat(60)); Object.keys(firstMapping).forEach(key => { const value = firstMapping[key]; const type = typeof value; const isArray = Array.isArray(value); console.log(`${key}: ${type} ${isArray ? '[ARRAY]' : ''}`); if (key === 'id') { console.log(` ID is ${type} with value: ${value}`); if (type === 'number') { console.log(` PROBLEM: Flutter likely expects STRING!`); } } if (key === 'offset') { console.log(` offset is ${type} with value: ${value}`); } }); console.log('\nFull first mapping:'); console.log(JSON.stringify(firstMapping, null, 2));