@tinybirdco/mockingbird
Version:
62 lines • 1.8 kB
TypeScript
import { z } from "zod";
import { Row } from "../types";
import { BaseGenerator } from "./BaseGenerator";
declare const ablyConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
schema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
type: z.ZodString;
params: z.ZodOptional<z.ZodAny>;
count: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: string;
count?: number | undefined;
params?: any;
}, {
type: string;
count?: number | undefined;
params?: any;
}>>, Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>, Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>>;
eps: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
logs: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
}, {
apiKey: z.ZodString;
channelId: z.ZodString;
}>, "strip", z.ZodTypeAny, {
schema: Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>;
eps: number;
limit: number;
apiKey: string;
channelId: string;
logs?: boolean | undefined;
}, {
schema: Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>;
apiKey: string;
channelId: string;
eps?: number | undefined;
limit?: number | undefined;
logs?: boolean | undefined;
}>;
export type AblyConfig = z.infer<typeof ablyConfigSchema>;
export declare class AblyGenerator extends BaseGenerator<AblyConfig> {
readonly token: string;
constructor(config: AblyConfig);
sendData(rows: Row[]): Promise<void>;
}
export {};
//# sourceMappingURL=AblyGenerator.d.ts.map