@basetime/a2w-api-ts
Version:
Client library that communicates with the addtowallet API.
21 lines (20 loc) • 715 B
TypeScript
import { z } from 'zod';
/**
* Schema for a scanner log entry recorded against a pass.
*
* Returned by `client.campaigns.passes.getScannerLogs(...)`. The exact set of fields is
* defined on the backend and may grow over time; consult the backend repo (`scanners`
* and `campaigns/passes` route handlers) for the canonical shape.
*/
export declare const ScannerLogSchema: z.ZodObject<{
id: z.ZodString;
apiKey: z.ZodString;
pass: z.ZodString;
campaign: z.ZodString;
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
createdDate: z.ZodCoercedDate<unknown>;
}, z.core.$loose>;
/**
* A scanner log entry recorded against a pass.
*/
export type ScannerLog = z.infer<typeof ScannerLogSchema>;