← back to Fix Live Board

probes/demo.mjs

9 lines

#!/usr/bin/env node
// Static demo probe — proves the board is source-agnostic with zero external dependency.
// Emits a JSON array of rows: {id,title,sku,price,created,status,fields:{...}}
process.stdout.write(JSON.stringify([
  { id: 'A-001', title: 'Fully fixed item', sku: 'A-001', price: 172.5, created: '2026-09-01T10:15:00Z', status: 'ACTIVE', fields: { price: true, tags: true, image: true, min: true } },
  { id: 'A-002', title: 'Missing price + min', sku: 'A-002', price: 0, created: '2026-09-02T08:40:00Z', status: 'DRAFT', fields: { price: false, tags: true, image: true, min: false } },
  { id: 'A-003', title: 'Bad tags only', sku: 'A-003', price: 149, created: '2026-09-02T12:05:00Z', status: 'ACTIVE', fields: { price: true, tags: false, image: true, min: true } }
]));