UNPKG

@buildable/messages

Version:

A fully managed messaging service that lets you easily exchange event data across any app or resource.

58 lines (57 loc) 1.44 kB
export declare const baseURL: string; export declare const emit: ({ secret, event, payload }: { secret: string; event: string; payload: object; }) => Promise<any>; export declare const getTopic: ({ secret, eventName, platform, label }: { secret: string; eventName: string; platform?: string | undefined; label?: string | undefined; }) => Promise<any>; export declare const queryEvents: ({ secret, eventName, txKey, platform, label, since, txState, page, pageSize }: { secret: string; eventName: string; txKey: string; platform: string; label: string; since: number; txState: string; page: number; pageSize: number; }) => Promise<{ rows: any; totalPages: any; hasError?: undefined; } | { rows: never[]; totalPages: number; hasError: boolean; }>; export declare const initTransaction: ({ secret, key, txKey, eventName }: { secret: string; key: string; txKey: string; eventName: string; }) => Promise<{ transaction: any; hasError?: undefined; } | { hasError: boolean; transaction?: undefined; }>; export declare const transact: ({ secret, key, txKey, eventName, output, state }: { secret: string; key: string; txKey: string; eventName: string; output: any; state: string; }) => Promise<{ transaction: any; hasError?: undefined; } | { hasError: boolean; transaction?: undefined; }>;