Skip to content

Commit

Permalink
feat: Generated types
Browse files Browse the repository at this point in the history
  • Loading branch information
mathhulk committed Jul 2, 2024
1 parent 73a4111 commit c8569ee
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
49 changes: 49 additions & 0 deletions backend/src/generated-types/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export type Course = {
gradingBasis: CourseGradingBasis;
lastUpdated: Scalars['ISODate']['output'];
number: Scalars['String']['output'];
primaryInstructionMethod: InstructionMethod;
raw: Scalars['JSONObject']['output'];
requiredCourses: Array<Course>;
requirements?: Maybe<Scalars['String']['output']>;
Expand Down Expand Up @@ -232,6 +233,52 @@ export type GradeDistributionItem = {
letter: Scalars['String']['output'];
};

export type InstructionMethod =
/** Clinic */
| 'CLC'
/** Colloquium */
| 'COL'
/** Conversation */
| 'CON'
/** Demonstration */
| 'DEM'
/** Discussion */
| 'DIS'
/** Field Work */
| 'FLD'
/** Directed Group Study */
| 'GRP'
/** Independent Study */
| 'IND'
/** Internship */
| 'INT'
/** Laboratory */
| 'LAB'
/** Lecture */
| 'LEC'
/** Reading */
| 'REA'
/** Recitation */
| 'REC'
/** Seminar */
| 'SEM'
/** Session */
| 'SES'
/** Self-paced */
| 'SLF'
/** Studio */
| 'STD'
/** Tutorial */
| 'TUT'
/** Unknown */
| 'UNK'
/** Web-Based Discussion */
| 'WBD'
/** Web-Based Lecture */
| 'WBL'
/** Workshop */
| 'WOR';

export type Instructor = {
__typename?: 'Instructor';
familyName?: Maybe<Scalars['String']['output']>;
Expand Down Expand Up @@ -615,6 +662,7 @@ export type ResolversTypes = {
GradeDistributionItem: ResolverTypeWrapper<GradeDistributionItem>;
ID: ResolverTypeWrapper<Scalars['ID']['output']>;
ISODate: ResolverTypeWrapper<Scalars['ISODate']['output']>;
InstructionMethod: InstructionMethod;
Instructor: ResolverTypeWrapper<Instructor>;
Int: ResolverTypeWrapper<Scalars['Int']['output']>;
JSON: ResolverTypeWrapper<Scalars['JSON']['output']>;
Expand Down Expand Up @@ -716,6 +764,7 @@ export type CourseResolvers<ContextType = any, ParentType extends ResolversParen
gradingBasis?: Resolver<ResolversTypes['CourseGradingBasis'], ParentType, ContextType>;
lastUpdated?: Resolver<ResolversTypes['ISODate'], ParentType, ContextType>;
number?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
primaryInstructionMethod?: Resolver<ResolversTypes['InstructionMethod'], ParentType, ContextType>;
raw?: Resolver<ResolversTypes['JSONObject'], ParentType, ContextType>;
requiredCourses?: Resolver<Array<ResolversTypes['Course']>, ParentType, ContextType>;
requirements?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
Expand Down
5 changes: 4 additions & 1 deletion backend/src/modules/catalog/generated-types/module-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as gm from "graphql-modules";
export namespace CatalogModule {
interface DefinedFields {
Query: 'course' | 'class' | 'section' | 'catalog' | 'courseList';
Course: 'classes' | 'crossListing' | 'sections' | 'requiredCourses' | 'requirements' | 'description' | 'fromDate' | 'gradeAverage' | 'gradingBasis' | 'finalExam' | 'academicCareer' | 'number' | 'subject' | 'title' | 'toDate' | 'typicallyOffered' | 'raw' | 'lastUpdated';
Course: 'classes' | 'crossListing' | 'sections' | 'requiredCourses' | 'requirements' | 'description' | 'fromDate' | 'gradeAverage' | 'gradingBasis' | 'finalExam' | 'academicCareer' | 'number' | 'subject' | 'title' | 'primaryInstructionMethod' | 'toDate' | 'typicallyOffered' | 'raw' | 'lastUpdated';
Class: 'course' | 'primarySection' | 'sections' | 'session' | 'gradingBasis' | 'finalExam' | 'description' | 'title' | 'number' | 'semester' | 'year' | 'unitsMax' | 'unitsMin' | 'raw' | 'lastUpdated';
Section: 'class' | 'course' | 'enrollmentHistory' | 'ccn' | 'number' | 'primary' | 'component' | 'meetings' | 'exams' | 'startDate' | 'endDate' | 'online' | 'open' | 'reservations' | 'enrollCount' | 'waitlistCount' | 'enrollMax' | 'waitlistMax' | 'raw' | 'lastUpdated';
Reservation: 'enrollCount' | 'enrollMax' | 'group';
Expand All @@ -22,6 +22,7 @@ export namespace CatalogModule {
ClassGradingBasis: 'ESU' | 'SUS' | 'OPT' | 'PNP' | 'BMT' | 'GRD' | 'IOP';
Session: 'R' | 'S' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F';
Component: 'WOR' | 'WBD' | 'CLN' | 'PRA' | 'GRP' | 'DIS' | 'VOL' | 'TUT' | 'FLD' | 'LEC' | 'SUP' | 'LAB' | 'SES' | 'STD' | 'SLF' | 'COL' | 'WBL' | 'IND' | 'INT' | 'REA' | 'REC' | 'SEM';
InstructionMethod: 'UNK' | 'DEM' | 'CON' | 'WOR' | 'WBD' | 'CLC' | 'GRP' | 'DIS' | 'TUT' | 'FLD' | 'LEC' | 'LAB' | 'SES' | 'STD' | 'SLF' | 'COL' | 'WBL' | 'IND' | 'INT' | 'REA' | 'REC' | 'SEM';
};

export type Query = Pick<Types.Query, DefinedFields['Query']>;
Expand All @@ -32,6 +33,7 @@ export namespace CatalogModule {
export type CourseGradingBasis = DefinedEnumValues['CourseGradingBasis'];
export type CourseFinalExam = DefinedEnumValues['CourseFinalExam'];
export type AcademicCareer = DefinedEnumValues['AcademicCareer'];
export type InstructionMethod = DefinedEnumValues['InstructionMethod'];
export type JSONObject = Types.JsonObject;
export type ISODate = Types.IsoDate;
export type Session = DefinedEnumValues['Session'];
Expand Down Expand Up @@ -98,6 +100,7 @@ export namespace CatalogModule {
number?: gm.Middleware[];
subject?: gm.Middleware[];
title?: gm.Middleware[];
primaryInstructionMethod?: gm.Middleware[];
toDate?: gm.Middleware[];
typicallyOffered?: gm.Middleware[];
raw?: gm.Middleware[];
Expand Down

0 comments on commit c8569ee

Please sign in to comment.