@basetime/a2w-api-ts
Version:
Client library that communicates with the addtowallet API.
33 lines (32 loc) • 887 B
TypeScript
import { z } from 'zod';
/**
* Schema for the schedule when the campaign should run.
*/
export declare const ScheduleWhenSchema: z.ZodEnum<{
daily: "daily";
"daily-except-weekends": "daily-except-weekends";
weekly: "weekly";
monthly: "monthly";
}>;
/**
* The schedule when the campaign should run.
*/
export type ScheduleWhen = z.infer<typeof ScheduleWhenSchema>;
/**
* Schema for the schedule for the campaign.
*/
export declare const ScheduleSchema: z.ZodObject<{
when: z.ZodUnion<readonly [z.ZodEnum<{
daily: "daily";
"daily-except-weekends": "daily-except-weekends";
weekly: "weekly";
monthly: "monthly";
}>, z.ZodLiteral<"">]>;
weekday: z.ZodString;
monthday: z.ZodString;
time: z.ZodString;
}, z.core.$loose>;
/**
* The schedule for the campaign.
*/
export type Schedule = z.infer<typeof ScheduleSchema>;