first commit
CI / lint-and-test (push) Canceled after 0s

This commit is contained in:
Alberto-Audrix committed 2026-07-28 08:55:05 +07:00
commit 32a36cceff
444 files changed
+67186

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
import { ErpSyncStats, ErpEndpoint } from '../types';
export const initialErpSyncStats: ErpSyncStats = {
status: 'Operasional',
recordsSyncedToday: 15480,
lastSync: new Date(Date.now() - 15 * 60 * 1000), // 15 minutes ago
};
export const initialErpEndpoints: ErpEndpoint[] = [
{
id: 'ep1',
name: 'API Inventori Gudang',
url: 'https://erp.cp.co.id/api/v1/inventory',
status: 'OK',
lastChecked: new Date(Date.now() - 1 * 60 * 1000),
avgResponseTime: 120,
},
{
id: 'ep2',
name: 'API Data Penjualan Harian',
url: 'https://erp.cp.co.id/api/v1/sales',
status: 'OK',
lastChecked: new Date(Date.now() - 2 * 60 * 1000),
avgResponseTime: 180,
},
{
id: 'ep3',
name: 'API Data Keuangan',
url: 'https://erp.cp.co.id/api/v1/finance',
status: 'DEGRADED',
lastChecked: new Date(Date.now() - 30 * 1000),
avgResponseTime: 1500,
},
{
id: 'ep4',
name: 'API Logistik & Pengiriman',
url: 'https://erp.cp.co.id/api/v1/logistics',
status: 'DOWN',
lastChecked: new Date(Date.now() - 5 * 60 * 1000),
avgResponseTime: 0,
},
{
id: 'ep5',
name: 'API Sumber Daya Manusia (HR)',
url: 'https://erp.cp.co.id/api/v1/hr',
status: 'OK',
lastChecked: new Date(Date.now() - 4 * 60 * 1000),
avgResponseTime: 90,
},
];