@basetime/a2w-api-ts
Version:
Client library that communicates with the addtowallet API.
32 lines (31 loc) • 1.03 kB
TypeScript
import { z } from 'zod';
/**
* Schema for information needed to generate a pass.
*/
export declare const PassSchema: z.ZodObject<{
id: z.ZodString;
bundle: z.ZodString;
jobId: z.ZodString;
serialNumber: z.ZodString;
objectStore: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
objectStoreMD5: z.ZodString;
primaryKey: z.ZodString;
passTypeIdentifier: z.ZodString;
campaignId: z.ZodString;
organizationId: z.ZodString;
templateId: z.ZodString;
templateVersion: z.ZodNumber;
enrollment: z.ZodOptional<z.ZodString>;
requestLog: z.ZodString;
googleObjectId: z.ZodOptional<z.ZodString>;
isClaimed: z.ZodBoolean;
isScanned: z.ZodBoolean;
isRedeemed: z.ZodBoolean;
createdMillis: z.ZodOptional<z.ZodNumber>;
updatedDate: z.ZodCoercedDate<unknown>;
createdDate: z.ZodCoercedDate<unknown>;
}, z.core.$loose>;
/**
* Information needed to generate a pass.
*/
export type Pass = z.infer<typeof PassSchema>;