import { getOrderInsight } from './src/services/fiestaApi.ts';
import { fiestaGet } from './src/services/fiestaApi.ts';

async function test() {
  const res = await fiestaGet('orders/gettimeseries', {
    tenantid: 1087,
    granularity: 'day',
    fromdate: '2026-05-15',
    todate: '2026-06-15'
  });
  console.log(JSON.stringify(res, null, 2));
}

test();
