UNPKG

web3.db-fileconnector

Version:

GraphQL System Built on web3 technologies. Web3.DB is an open database built on top of web3 technologies. It is a decentralized, open-source database that allows users to store and query data in a secure and efficient manner. The system is designed to be

42 lines (34 loc) 1.05 kB
// types.ts // This file is currently not in use and has been replaced with a placeholder to prevent build errors // Define placeholder interfaces to prevent TypeScript errors export interface IPFSInstance { add: (fileBuffer: Buffer) => Promise<{ cid: { toString: () => string } }>; } export interface CeramicClient { // Placeholder for Ceramic client methods } export interface SDKConfig { ceramicUrl: string; instance: string; apiKey: string; ipfsPort?: number; sqlitePath?: string; wordpressUrl?: string; otherApiUrl?: string; } export interface WordPressDataSource { getPosts: () => Promise<{ id: string; title: string; content: string }[]>; } export interface ApolloContext { dataSources: { wordpress: WordPressDataSource; ipfs: IPFSDataSource; ceramic: CeramicDataSource; }; } export interface IPFSDataSource { uploadFile: (fileBuffer: Buffer) => Promise<string>; } export interface CeramicDataSource { getStream: (streamId: string) => Promise<any>; }