Intial Version

This commit is contained in:
2025-12-03 18:00:10 -05:00
parent 43c4227da7
commit 0b86c88eb4
55 changed files with 8938 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
"use strict";
// Shared types between main and renderer processes
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -0,0 +1,43 @@
// Shared types between main and renderer processes
export interface VendorPrice {
id: string;
platform: 'eldorado' | 'playerauctions';
sellerName: string;
pricePerMillion: number;
timestamp: Date;
url?: string;
}
export interface PriceIndex {
timestamp: Date;
lowestPrice: number;
platform: string;
sellerName: string;
allPrices: VendorPrice[];
}
export interface PriceAlert {
id: string;
type: 'below' | 'above';
threshold: number;
enabled: boolean;
}
export interface WebSocketMessage {
type: 'price_update' | 'connection_status' | 'error' | 'history_data' | 'get_history' | 'subscribe';
data: any;
}
export interface HistoricalData {
range: string;
from: Date;
to: Date;
prices: VendorPrice[];
}
export interface ConnectionStatus {
connected: boolean;
lastUpdate?: Date;
error?: string;
}