UNPKG

@tinybirdco/mockingbird

Version:
72 lines 2.3 kB
import { z } from "zod"; import { Row } from "../types"; import { BaseGenerator } from "./BaseGenerator"; declare const tinybirdConfigSchema: 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>>; }, { endpoint: z.ZodString; datasource: z.ZodString; token: z.ZodString; }>, "strip", z.ZodTypeAny, { schema: Record<string, { type: string; count?: number | undefined; params?: any; }>; eps: number; limit: number; endpoint: string; datasource: string; token: string; logs?: boolean | undefined; }, { schema: Record<string, { type: string; count?: number | undefined; params?: any; }>; endpoint: string; datasource: string; token: string; eps?: number | undefined; limit?: number | undefined; logs?: boolean | undefined; }>; export type TinybirdConfig = z.infer<typeof tinybirdConfigSchema>; export declare class TinybirdGenerator extends BaseGenerator<TinybirdConfig> { readonly endpoints: { readonly gcp_europe_west3: "https://api.tinybird.co"; readonly gcp_us_east4: "https://api.us-east.tinybird.co"; readonly aws_us_east_1: "https://api.us-east.aws.tinybird.co"; readonly aws_eu_central_1: "https://api.eu-central-1.aws.tinybird.co"; readonly aws_us_west_2: "https://api.us-west-2.aws.tinybird.co"; }; readonly events_path: "/v0/events"; constructor(config: TinybirdConfig); sendData(rows: Row[]): Promise<void>; } export {}; //# sourceMappingURL=TinybirdGenerator.d.ts.map