/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ /** * Request serializer for ProgramInvitationView POST endpoint. * * Supports CSV date fields for enrollment_config: * - program_access_start_date: Maps to enrollment_config['started'] * - program_access_expiration_date: Maps to enrollment_config['expired'] */ export type ProgramInvitationCreate = { /** * The program to create an invitation for */ program_key: string; /** * The email address to invite */ email?: string; /** * The username to invite */ username?: string; /** * Whether the invitation is active */ active?: boolean; /** * The source of the invitation */ source?: string; /** * URL to redirect to after accepting the invitation */ redirect_to?: string; /** * When the invitation was created */ created?: string; /** * When the invitation expires */ expired?: string; /** * Additional metadata for the invitation */ metadata?: Record; /** * Enrollment configuration (dates, etc.) */ enrollment_config?: Record; /** * Program access start date (maps to enrollment_config['started']) */ program_access_start_date?: string | null; /** * Program access expiration date (maps to enrollment_config['expired']) */ program_access_expiration_date?: string | null; };