@lineai/gov-deals
Version:
Explore Federal contracts for government building renovations, city hall renovations, courthouse updates, library modernizations, federal building improvement contracts, base housing and facilities upgrades.
22 lines (21 loc) • 696 B
TypeScript
/**
* Wrapper to make SamApi work with Supabase Edge Functions
* Converts query parameter authentication to header authentication
*/
import { OpportunitiesEndpoint } from './sam/endpoints/opportunities';
/**
* Supabase-compatible API wrapper
* Use this instead of SamApi when connecting to Supabase Edge Functions
*/
export declare class SupabaseApi {
private readonly client;
readonly opportunities: OpportunitiesEndpoint;
constructor(options: {
apiKey: string;
baseUrl: string;
});
}
/**
* Helper function to create Supabase-compatible API instance
*/
export declare function createSupabaseApi(supabaseUrl: string, supabaseAnonKey: string): SupabaseApi;