@basetime/a2w-api-ts
Version:
Client library that communicates with the addtowallet API.
28 lines (27 loc) • 756 B
TypeScript
import { z } from 'zod';
/**
* Schema for information about an enrollment.
*/
export declare const EnrollmentSchema: z.ZodObject<{
id: z.ZodString;
ui: z.ZodString;
ip: z.ZodString;
campaign: z.ZodString;
primaryKey: z.ZodString;
submitted: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$loose>;
/**
* Information about an enrollment.
*/
export type Enrollment = z.infer<typeof EnrollmentSchema>;
/**
* Schema for the response when creating an enrollment.
*/
export declare const EnrollmentResponseSchema: z.ZodObject<{
pass: z.ZodString;
errors: z.ZodArray<z.ZodString>;
}, z.core.$loose>;
/**
* Response when creating an enrollment.
*/
export type EnrollmentResponse = z.infer<typeof EnrollmentResponseSchema>;