import { GlobalOptions, APIRequestContext, FerantConfigurable } from '../../util/types'; export declare namespace classroom_v1 { interface Options extends GlobalOptions { version: 'v1'; } interface Params$Classroom$Class { courseId?: string; /** Deprecated but still used in some areas */ classKey?: string; tFID?: string; sFID?: string[]; } interface Params$Classroom$Details { courseId?: string; /** Deprecated but still used in some areas */ classKey?: string; name?: string; period?: string; } interface Params$Classroom$Upload { /** Course information */ course?: Params$Classroom$Upload$Course; /** A UUID that was generated when first created. If empty, creates new class. **Required if updating.** */ courseId?: string; /** List of student emails */ students?: string[]; } interface Params$Classroom$Upload$Course { name?: string; period?: string; } interface Returns$Classroom$Upload { /** A UUID string generated for internal use. */ courseId?: string; /** List of users who have signed up for Ferant. */ usersFound?: string[]; /** List of users who have **not** signed up for Ferant */ usersLeft?: string[]; } interface Returns$Classroom$Sync { message?: string; error?: string; } /** * Class based functionality. Functions here provide class information rather than about the students in particular. */ class Classroom { context: APIRequestContext; student: Resource$Student; students: Resource$Students; sync: Resource$Sync; constructor(options: GlobalOptions, ferant?: FerantConfigurable); /** * Get all of the teacher's classes as a list with the respective students' FID in each class. * * @returns */ classes(): Promise; /** * Get a list of students in a particular class. * * @param courseId Class ID * @returns */ class(courseId: string): Promise; /** * Upload students for a class. * * @param data Class details * @returns course ID that was generated, users found, and users who have not signed up yet */ upload(data: Params$Classroom$Upload): Promise; /** * Get the class information. * * @param courseId Class ID * @returns */ info(courseId: string): Promise; } interface Params$Students$Class { [key: string]: Params$Students$Class$Details; } interface Params$Students$Class$Details { assets?: Params$Students$Class$Details$Assets; users?: Params$Students$Class$Details$User[]; } interface Params$Students$Class$Details$Assets { [key: string]: Params$Students$Class$Details$Assets$User; } interface Params$Students$Class$Details$Assets$User { assets?: Params$Students$Class$Details$Assets$User$Assets; lifeword?: Params$Students$Class$Details$Assets$User$Lifeword; } interface Params$Students$Class$Details$Assets$User$Assets { assetFinal?: string[]; big5Sorted?: string[]; groupedAssets?: string[][]; } interface Params$Students$Class$Details$Assets$User$Lifeword { lifewords?: string[]; topLifeword?: string; } interface Params$Students$Class$Details$User { __typename?: string; bio?: { created?: string; value?: string; }; createdAt?: string; email?: string; family_name?: string; fid?: string; given_name?: string; initialSurvey?: string; 'intake-data-consent'?: string; lifewordTaken?: string; picture?: string; username?: string; } /** * All of the functions needed to retrieve student information in batch. These functions are good for pages with a lot of student information. */ class Resource$Students { context: APIRequestContext; constructor(context: APIRequestContext); /** * Retrieve a particular student's information. * * @param fid Student's FID * @returns */ class(courseId: string): Promise; /** * Get a list of all of the teacher's students and their basic profile information. * * @returns */ all(): Promise; } /** * Per student functionality for granular control over students. * * @under_works */ class Resource$Student { context: APIRequestContext; constructor(context: APIRequestContext); } /** * All of the functions needed to retrieve student information in batch. These functions are good for pages with a lot of student information. */ class Resource$Sync { context: APIRequestContext; constructor(context: APIRequestContext); /** * Synchronize the list of students in a particular class. * * @param courseId Class ID * @returns */ class(courseId: string): Promise; /** * Get a list of all of the teacher's students and their basic profile information. * * @returns */ email(email: string): Promise; } }