@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
25 lines • 1.19 kB
text/typescript
import { Query, QueryOptions } from "../../storage/StorageService.mjs";
import { Logger } from "../../logger/Logger.mjs";
import { GenericRecord, SaveGenericRecordOption } from "./repository/GenericRecord.mjs";
import { GenericRecordService } from "./services/GenericRecordService.mjs";
import { AgentContext } from "../../agent/context/AgentContext.mjs";
import "../../agent/index.mjs";
//#region src/modules/generic-records/GenericRecordsApi.d.ts
export type ContentType = {
content: string;
};
export declare class GenericRecordsApi {
private genericRecordsService;
private logger;
private agentContext;
constructor(genericRecordsService: GenericRecordService, logger: Logger, agentContext: AgentContext);
save({ content, tags, id }: SaveGenericRecordOption): Promise<GenericRecord>;
delete(record: GenericRecord): Promise<void>;
deleteById(id: string): Promise<void>;
update(record: GenericRecord): Promise<void>;
findById(id: string): Promise<GenericRecord | null>;
findAllByQuery(query: Query<GenericRecord>, queryOptions?: QueryOptions): Promise<GenericRecord[]>;
getAll(): Promise<GenericRecord[]>;
}
//#endregion
//# sourceMappingURL=GenericRecordsApi.d.mts.map