/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ /** * Request serializer for CourseInvitationView POST endpoint. * * Supports CSV date fields for enrollment_config: * - course_access_start_date: Maps to enrollment_config['started'] * - course_access_expiration_date: Maps to enrollment_config['expired'] */ export type CourseInvitationCreate = { /** * The course to create an invitation for */ course_id: 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; /** * Course access start date (maps to enrollment_config['started']) */ course_access_start_date?: string | null; /** * Course access expiration date (maps to enrollment_config['expired']) */ course_access_expiration_date?: string | null; };