UNPKG

@dataql/node

Version:

DataQL core SDK for unified data management with MongoDB and GraphQL - Production Multi-Cloud Ready

31 lines (30 loc) 1.15 kB
export interface WorkerEndpoints { development: string; staging: string; production: string; } export interface MultiCloudEndpoints { aws: string[]; gcp: string[]; azure: string[]; } export declare const SERVERLESS_ENDPOINTS: MultiCloudEndpoints; export declare const WORKER_ENDPOINTS: string[]; export declare const ALL_ENDPOINTS: string[]; export declare const DEFAULT_WORKER_ENDPOINTS: WorkerEndpoints; export declare function testEndpointPerformance(endpoint: string, timeout?: number): Promise<{ url: string; responseTime: number; available: boolean; }>; export declare function selectBestEndpoint(endpoints?: string[], maxConcurrent?: number): Promise<string>; export declare function getWorkerUrl(_environment?: string): string; export declare function detectEnvironment(): keyof WorkerEndpoints; export interface GlobalDataQLConfig { enableGlobalRouting: boolean; preferredProvider?: "aws" | "gcp" | "azure"; maxEndpointTestTime?: number; fallbackEndpoint?: string; } export declare const DEFAULT_GLOBAL_CONFIG: GlobalDataQLConfig; export declare const GLOBAL_ENDPOINTS: MultiCloudEndpoints;