UNPKG

@hasna/domains

Version:

Domain portfolio, registrar, marketplace, and DNS management for AI agents — CLI + MCP + HTTP API + SDK, shared account API and PostgreSQL

32 lines • 1.84 kB
/** * Routed domain-history facade. All reads/writes go through the resolved * {@link DomainsStore} (always ApiStore for clients); the sqlite-backed * `domain-history` module is only reached from the LocalStore fixture. * * `HISTORY_TYPES` is imported STATICALLY so the bundler can tree-shake the * sqlite functions out of the client bundles; a dynamic * `import("./domain-history.js")` materialises the namespace and drags * `bun:sqlite` into dist/cli. */ export type { DomainHistory, DomainHistoryType, CreateHistoryEntryInput, } from "./domain-history.js"; export { HISTORY_TYPES } from "./domain-history.js"; import type { DomainHistory, DomainHistoryType, CreateHistoryEntryInput } from "./domain-history.js"; export declare function createHistoryEntry(input: CreateHistoryEntryInput): Promise<DomainHistory>; export declare function getHistoryEntry(id: string): Promise<DomainHistory | null>; export declare function getHistoryByDomain(domainId: string, options?: { type?: DomainHistoryType; limit?: number; }): Promise<DomainHistory[]>; export declare function getLatestSnapshot(domainId: string, type: DomainHistoryType): Promise<DomainHistory | null>; export declare function getHistoryByDateRange(startDate: string, endDate: string, domainId?: string): Promise<DomainHistory[]>; export declare function listDomainsWithHistoryChanges(): Promise<Array<{ domain_id: string; domain_name: string; latest_snapshot_type: string; latest_snapshot_at: string; snapshot_count: number; }>>; export declare function getLatestByDomainName(domainName: string, type?: DomainHistoryType): Promise<DomainHistory | null>; export declare function deleteHistoryEntry(id: string): Promise<boolean>; export declare function deleteHistoryByDomain(domainId: string): Promise<boolean>; //# sourceMappingURL=history.d.ts.map