@basetime/a2w-api-ts
Version:
Client library that communicates with the addtowallet API.
67 lines (66 loc) • 2.15 kB
TypeScript
import { z } from 'zod';
/**
* Schema for the stats for the campaign.
*/
export declare const CampaignStatsSchema: z.ZodObject<{
countMacType: z.ZodNumber;
countWindowsType: z.ZodNumber;
countLinuxType: z.ZodNumber;
countMobileType: z.ZodNumber;
countDesktopType: z.ZodNumber;
countWearableType: z.ZodNumber;
countTabletType: z.ZodNumber;
countAndroidType: z.ZodNumber;
countIOSType: z.ZodNumber;
countWinPhoneType: z.ZodNumber;
}, z.core.$loose>;
/**
* The stats for the campaign.
*/
export type CampaignStats = z.infer<typeof CampaignStatsSchema>;
/**
* Schema for the detailed stats for the campaign.
*/
export declare const DetailedStatsSchema: z.ZodObject<{
countMacType: z.ZodNumber;
countWindowsType: z.ZodNumber;
countLinuxType: z.ZodNumber;
countMobileType: z.ZodNumber;
countDesktopType: z.ZodNumber;
countWearableType: z.ZodNumber;
countTabletType: z.ZodNumber;
countAndroidType: z.ZodNumber;
countIOSType: z.ZodNumber;
countWinPhoneType: z.ZodNumber;
browsers: z.ZodRecord<z.ZodString, z.ZodNumber>;
countries: z.ZodRecord<z.ZodString, z.ZodNumber>;
states: z.ZodRecord<z.ZodString, z.ZodNumber>;
countTotal: z.ZodNumber;
}, z.core.$loose>;
/**
* The detailed stats for the campaign.
*/
export type DetailedStats = z.infer<typeof DetailedStatsSchema>;
/**
* Schema for the daily stats for the campaign.
*/
export declare const DailyStatsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
countMacType: z.ZodNumber;
countWindowsType: z.ZodNumber;
countLinuxType: z.ZodNumber;
countMobileType: z.ZodNumber;
countDesktopType: z.ZodNumber;
countWearableType: z.ZodNumber;
countTabletType: z.ZodNumber;
countAndroidType: z.ZodNumber;
countIOSType: z.ZodNumber;
countWinPhoneType: z.ZodNumber;
browsers: z.ZodRecord<z.ZodString, z.ZodNumber>;
countries: z.ZodRecord<z.ZodString, z.ZodNumber>;
states: z.ZodRecord<z.ZodString, z.ZodNumber>;
countTotal: z.ZodNumber;
}, z.core.$loose>>;
/**
* The daily stats for the campaign.
*/
export type DailyStats = z.infer<typeof DailyStatsSchema>;