@omegasolutions/vallora-log-sdk
Version:
A lightweight SDK for publishing transaction log events to Google Pub/Sub
11 lines (10 loc) • 329 B
TypeScript
import { TransactionLogPayload } from './types';
export declare class LogClient {
private pubsub;
private readonly topicName;
constructor();
/**
* Publishes a log message to the transaction-log-topic
*/
publishLog(payload: Omit<TransactionLogPayload, 'createdAt' | 'updatedAt'>): Promise<string>;
}