Home Identifier Source Repository

Function

Static Public Summary
public

Checks if a set of courses spans multiple departments.

public

buildAreaId(objectPattern: {"name": *, "type": *, "revision": *}): *

public

buildDept(course: Course): String

Builds a department string from a course.

public

buildDeptNum(course: Course): String

Builds a deptnum string from a course.

public

buildQueryFromString(queryString: string, opts: {}): *

public

Takes a list of schedules and finds the next id number.

public

cartesianProductOf(args: ...*): *

public

Checks if any courses in a list of courses pass a given lodash filter.

public

checkForInvalidSemester(course: *, scheduleSemester: *): *

public

checkForInvalidYear(course: *, scheduleYear: *): *

public

checkForTimeConflicts(courses: *): *

public

Checks a student objects graduation possibilities against all of its areas of study.

public
public

Checks that a list of courses spans at least two departments, but also

public

cleanUpPage(html: *): *

public

collectUsedCourses(expr: *): *

public

Get k-sized combinations of elements in a set.

public

* combinations(array: *[], count: number)

public

comboHasAllCourses(courses: *, combinationOfClasses: *): *

public

compute(requirement: *, objectPattern1: {"path": *, "courses": *, "overrides": *, "dirty": *}): *

public

computeBoolean(expr: Object, ctx: Requirement, courses: Course[], dirty: Course[]): boolean

Computes the result of a boolean expression.

public

computeChunk(expr: Object, ctx: Requirement, courses: Course[], dirty: Course[]): boolean

Computes the result of an expression.

public

computeCountWithOperator(objectPattern: {"comparator": *, "has": *, "needs": *}): *

public

computeCourse(expr: Object, courses: Course[], dirty: Course[]): boolean

Computes the result of a course expression.

public

computeModifier(expr: Object, ctx: Requirement, courses: Course[]): boolean

Computes the result of a modifier expression.

public

computeOccurrence(expr: Object, courses: Course[]): boolean

Computes the result of an occurrence expression.

public

computeOf(expr: Object, ctx: Requirement, courses: Course[], dirty: Course[]): boolean

Computes the result of an of-expression.

public

Computes the result of a reference expression.

public

computeWhere(expr: Object, courses: Course[]): boolean

Computes the result of a where-expression.

public

concatAndMerge(a: *, b: *): *

public

countGeneds(courses: Array, gened: Array): Number

Counts the number of occurrences of a gened in a list of courses.

public

createSchedules(courses: *): *

public

enhanceHanson(data: *, objectPattern1: {"topLevel": *}): *

public

evaluate(objectPattern: {"courses": *, "overrides": *}, area: *): *

public

expandDepartment(dept: *): *

public

expandOldName(name: *): string

public

expandOldRevisionYear(revisionYear: *): string

public

expandOldType(type: *): string

public

Takes a year and expands it.

public

filterByQualification(list: *, qualification: *, fullList: *): *

public

filterByWhereClause(baseList: *, clause: *, fullList: *): *

public

findAreaPath(objectPattern: {"name": *, "type": *, "revision": *}): string

public

findAreasOfStudy(areas: *, degreeType: *): *

public

findFirstAvailableSemester(schedules: Array | Immutable.List, forYear: Number): Number

Takes a list of schedules and finds the first open semester.

public

findFirstAvailableYear(schedules: Array | Immutable.List, matriculation: Number): Number

Takes a list of schedules and finds the first open year.

public

findLeafRequirements(requirement: Requirement): Course[]

Searches recursively through a requirement tree to find all of the

public
public

findResults(obj: *): *

public

findWarnings(courses: *, schedule: *): *

public

Gets a course from the database.

public

getCourses(clbids: Array | Immutable.List): Promise[]

Gets a list of course ids from the database.

public

getDepartments(courses: Course[]): String[]

It plucks the departments from a list of courses, and returns the uniq'd list.

public

hasFOL(course: Course): Boolean

Checks if a course has an FOL gened.

public

humanizeOperator(operator: *): string

public

incrementProgress(id: *, by: number): *

public

isIntercollegiateSport(course: Course): Boolean

Only one SPM course credit may be earned by students as a result of

public
public

json(response: *): *

public

loadArea(objectPattern: {"name": *, "type": *, "revision": *, "source": *, "isCustom": *}): *

public

loadData(): *

public

logError(objectPattern: {"error": *, "quiet": *, "id": *}, args: ...*): *

public

logMessage(id: *, message: *): *

public

makeStudent(tables: *, degreeType: *): *

public

migrateFromOldSave(objectPattern: {"id": *, "revisionYear": *}): *

public

nameTheTables(tables: *): *

public
public
public

parseDataFromJSON(jsonData: *): *

public

parseSIS(html: *): *

public

plugin(db: *, treo: *)

public

plugin(db: *, treo: *)

public

prepareCourseForQuery(course: *): *

public

prettifyCourses(jsonCourses: *): *

public

processAreaTable(areaTable: *): *

public

processCoursesTable(coursesTable: *): *

public

processGradTable(gradTable: *): *

public

processInfoTable(infoTable: *): *

public

quacksLikeDeptNum(deptNumString: String): Boolean

Checks if a string looks like a deptnum.

public

queryCourseDatabase(queryString: *, baseQuery: {}): *

public

queryCourses(queryObj: Object, courses: Array<Course>): Array<Course>

Queries the database for courses.

public

reducer(state: *, action: *): *

public

removeNotification(id: *): *

public

searchForCourseMatches(queryObject: *): *

public

semesterName(semester: Number): String

Takes a semester number and returns the associated semester string.

public

slugifyAreaName(name: *): *

public

splitDeptNum(deptNumString: String, includeSection: Boolean): Object

Splits a deptnum string (like "AS/RE 230A") into its components,

public

splitParagraph(string: string): *

public

start()

public

startProgress(id: *, message: string, objectPattern2: {"value": *, "max": *, "showButton": *}): *

public

status(response: *): *

public

tableToJson(table: *): *

public

text(response: *): *

public

Takes a term and makes it pretty.

public

unescapeAllValues(obj: *): *

public

zipToObjectWithArrays(keys: *, vals: *): *

Static Public

public acrossAtLeastTwoDepartments(courses: Array): Boolean source

import acrossAtLeastTwoDepartments from 'gobbldygook/src/helpers/across-at-least-two-departments.js'

Checks if a set of courses spans multiple departments.

Params:

NameTypeAttributeDescription
courses Array

the list of courses.

Return:

Boolean

if the course spans at least two departments

public buildAreaId(objectPattern: {"name": *, "type": *, "revision": *}): * source

import {buildAreaId} from 'gobbldygook/src/models/study.js'

Params:

NameTypeAttributeDescription
objectPattern {"name": *, "type": *, "revision": *}
  • default: {"name":null,"type":null,"revision":null}

Return:

*

public buildDept(course: Course): String source

Builds a department string from a course.

AS/RE => ASIAN/REL ASIAN/REL => ASIAN/REL ASIAN/RELIGION => ASIAN/REL

Params:

NameTypeAttributeDescription
course Course

the course

Return:

String

the department string

public buildDeptNum(course: Course): String source

Builds a deptnum string from a course.

Params:

NameTypeAttributeDescription
course Course

the course

Return:

String

the deptnum string

public buildQueryFromString(queryString: string, opts: {}): * source

import buildQueryFromString from 'gobbldygook/src/helpers/build-query-from-string.js'

Params:

NameTypeAttributeDescription
queryString string
  • optional
  • default:
opts {}
  • optional
  • default: {}

Return:

*

public calculateNextScheduleId(schedules: Array): Number source

import calculateNextScheduleId from 'gobbldygook/src/helpers/calculate-next-schedule-id.js'

Takes a list of schedules and finds the next id number.

Params:

NameTypeAttributeDescription
schedules Array

the list of schedules

Return:

Number

the largest ID in the list.

public cartesianProductOf(args: ...*): * source

import cartesianProductOf from 'gobbldygook/src/helpers/cartesian-product.js'

Params:

NameTypeAttributeDescription
args ...*

Return:

*

public checkCoursesFor(courses: Array, filter: String | Object | Function): Boolean source

import checkCoursesFor from 'gobbldygook/src/helpers/check-courses-for.js'

Checks if any courses in a list of courses pass a given lodash filter.

Params:

NameTypeAttributeDescription
courses Array

the list of courses

filter String | Object | Function

any valid lodash filter

Return:

Boolean

from _.any

public checkForInvalidSemester(course: *, scheduleSemester: *): * source

import {checkForInvalidSemester} from 'gobbldygook/src/lib/find-course-warnings.js'

Params:

NameTypeAttributeDescription
course *
scheduleSemester *

Return:

*

public checkForInvalidYear(course: *, scheduleYear: *): * source

import {checkForInvalidYear} from 'gobbldygook/src/lib/find-course-warnings.js'

Params:

NameTypeAttributeDescription
course *
scheduleYear *

Return:

*

public checkForTimeConflicts(courses: *): * source

import {checkForTimeConflicts} from 'gobbldygook/src/lib/find-course-warnings.js'

Params:

NameTypeAttributeDescription
courses *

Return:

*

public checkStudentGraduatability(student: Student): Promise source

import checkStudentGraduatability from 'gobbldygook/src/lib/check-student-graduatability.js'

Checks a student objects graduation possibilities against all of its areas of study.

Params:

NameTypeAttributeDescription
student Student

the student object

Return:

Promise

the promise of knowledge

public checkSystemReqirements(): boolean source

import checkSystemReqirements from 'gobbldygook/src/start-things/system-requirements.js'

Return:

boolean

public checkThatCoursesSpanDepartmentsAndGeneds(courses: Array<Course>, geneds: Array<String>): Boolean source

import checkThatCoursesSpanDepartmentsAndGeneds from 'gobbldygook/src/helpers/check-that-courses-span-departments-and-geneds.js'

Checks that a list of courses spans at least two departments, but also checks to make sure that it's not one course that's spanning both.

Params:

NameTypeAttributeDescription
courses Array<Course>

the list of courses.

geneds Array<String>

The list of geneds.

Return:

Boolean

if the courses space both departments and geneds

public cleanUpPage(html: *): * source

import cleanUpPage from 'gobbldygook/src/lib/clean-the-page.js'

Params:

NameTypeAttributeDescription
html *

Return:

*

public collectUsedCourses(expr: *): * source

import collectUsedCourses from 'gobbldygook/src/lib/collect-used-courses.js'

Params:

NameTypeAttributeDescription
expr *

Return:

*

public combinations(set: Array, k: Number): Array source

Get k-sized combinations of elements in a set.

Usage: combinations(set, k)

Examples:

combinations([1, 2, 3], 1) -> [[1], [2], [3]]

combinations([1, 2, 3], 2) -> [[1,2], [1,3], [2, 3]]

combinations([1, 2, 3], 3) -> [[1, 2, 3]]

combinations([1, 2, 3], 4) -> []

combinations([1, 2, 3], 0) -> []

combinations([1, 2, 3], -1) -> []

combinations([], 0) -> []

Params:

NameTypeAttributeDescription
set Array

Array of objects of any type. They are treated as unique.

k Number

size of combinations to search for.

Return:

Array

Array of found combinations; the size of a combination is k.

public * combinations(array: *[], count: number) source

import combinations from 'gobbldygook/src/helpers/combinations.js'

Params:

NameTypeAttributeDescription
array *[]
  • optional
  • default: []
count number
  • optional
  • default: 0

public comboHasAllCourses(courses: *, combinationOfClasses: *): * source

import comboHasAllCourses from 'gobbldygook/src/lib/combo-has-courses.js'

Params:

NameTypeAttributeDescription
courses *
combinationOfClasses *

Return:

*

public compute(requirement: *, objectPattern1: {"path": *, "courses": *, "overrides": *, "dirty": *}): * source

import compute from 'gobbldygook/src/lib/compute.js'

Params:

NameTypeAttributeDescription
requirement *
objectPattern1 {"path": *, "courses": *, "overrides": *, "dirty": *}
  • default: {"path":null,"courses":null,"overrides":null,"dirty":null}

Return:

*

public computeBoolean(expr: Object, ctx: Requirement, courses: Course[], dirty: Course[]): boolean source

import {computeBoolean} from 'gobbldygook/src/lib/compute-chunk.js'

Computes the result of a boolean expression.

Params:

NameTypeAttributeDescription
expr Object

the expression to process

ctx Requirement

the requirement context

courses Course[]

the list of courses to search

dirty Course[]

the list of dirty courses

Return:

boolean

the result of the modifier

public computeChunk(expr: Object, ctx: Requirement, courses: Course[], dirty: Course[]): boolean source

import computeChunk from 'gobbldygook/src/lib/compute-chunk.js'

Computes the result of an expression.

It operates by calling a more specific function based on the type of the expression.

There are three types of compute functions: those that need the surrounding context, those that don't, and the supervisor function.

Params:

NameTypeAttributeDescription
expr Object

the expression to process

ctx Requirement

the entire requirement context

courses Course[]

the list of courses to search

dirty Course[]

the list of dirty courses

Return:

boolean

the result of the expression

public computeCountWithOperator(objectPattern: {"comparator": *, "has": *, "needs": *}): * source

import computeCountWithOperator from 'gobbldygook/src/lib/compute-count-with-operator.js'

Params:

NameTypeAttributeDescription
objectPattern {"comparator": *, "has": *, "needs": *}
  • default: {"comparator":null,"has":null,"needs":null}

Return:

*

public computeCourse(expr: Object, courses: Course[], dirty: Course[]): boolean source

import {computeCourse} from 'gobbldygook/src/lib/compute-chunk.js'

Computes the result of a course expression.

Params:

NameTypeAttributeDescription
expr Object

the expression to build a query from

courses Course[]

the list of courses to search

dirty Course[]

the list of dirty courses

Return:

boolean

if the course was found or not

public computeModifier(expr: Object, ctx: Requirement, courses: Course[]): boolean source

import {computeModifier} from 'gobbldygook/src/lib/compute-chunk.js'

Computes the result of a modifier expression.

Params:

NameTypeAttributeDescription
expr Object

the expression to process

ctx Requirement

the requirement context

courses Course[]

the list of courses to search

Return:

boolean

the result of the modifier

public computeOccurrence(expr: Object, courses: Course[]): boolean source

import {computeOccurrence} from 'gobbldygook/src/lib/compute-chunk.js'

Computes the result of an occurrence expression.

Params:

NameTypeAttributeDescription
expr Object

the expression to process

courses Course[]

the list of courses to search

Return:

boolean

the result of the occurrence

public computeOf(expr: Object, ctx: Requirement, courses: Course[], dirty: Course[]): boolean source

import {computeOf} from 'gobbldygook/src/lib/compute-chunk.js'

Computes the result of an of-expression.

Params:

NameTypeAttributeDescription
expr Object

the expression to process

ctx Requirement

the requirement context

courses Course[]

the list of courses to search

dirty Course[]

the list of dirty courses

Return:

boolean

the result of the of-expression

public computeReference(expr: Object, ctx: Requirement): boolean source

import {computeReference} from 'gobbldygook/src/lib/compute-chunk.js'

Computes the result of a reference expression.

Params:

NameTypeAttributeDescription
expr Object

the expression to process

ctx Requirement

the requirement context

Return:

boolean

the result of the reference expression

public computeWhere(expr: Object, courses: Course[]): boolean source

import {computeWhere} from 'gobbldygook/src/lib/compute-chunk.js'

Computes the result of a where-expression.

Params:

NameTypeAttributeDescription
expr Object

the expression to process

courses Course[]

the list of courses to search

Return:

boolean

the result of the where-expression

public concatAndMerge(a: *, b: *): * source

import concatAndMerge from 'gobbldygook/src/helpers/concat-and-merge.js'

Params:

NameTypeAttributeDescription
a *
b *

Return:

*

public countGeneds(courses: Array, gened: Array): Number source

import countGeneds from 'gobbldygook/src/helpers/count-geneds.js'

Counts the number of occurrences of a gened in a list of courses.

Params:

NameTypeAttributeDescription
courses Array

the list of courses.

gened Array

the gened to look for.

Return:

Number

the number of occurrences.

public createSchedules(courses: *): * source

import createSchedules from 'gobbldygook/src/lib/create-schedules.js'

Params:

NameTypeAttributeDescription
courses *

Return:

*

public enhanceHanson(data: *, objectPattern1: {"topLevel": *}): * source

import enhanceHanson from 'gobbldygook/src/lib/enhance-hanson.js'

Params:

NameTypeAttributeDescription
data *
objectPattern1 {"topLevel": *}
  • optional
  • default: {}

Return:

*

public evaluate(objectPattern: {"courses": *, "overrides": *}, area: *): * source

import evaluate from 'gobbldygook/src/lib/evaluate.js'

Params:

NameTypeAttributeDescription
objectPattern {"courses": *, "overrides": *}
  • default: {"courses":null,"overrides":null}
area *

Return:

*

public expandDepartment(dept: *): * source

import expandDepartment from 'gobbldygook/src/lib/expand-department.js'

Params:

NameTypeAttributeDescription
dept *

Return:

*

public expandOldName(name: *): string source

import {expandOldName} from 'gobbldygook/src/models/study.js'

Params:

NameTypeAttributeDescription
name *

Return:

string

public expandOldRevisionYear(revisionYear: *): string source

import {expandOldRevisionYear} from 'gobbldygook/src/models/study.js'

Params:

NameTypeAttributeDescription
revisionYear *

Return:

string

public expandOldType(type: *): string source

import {expandOldType} from 'gobbldygook/src/models/study.js'

Params:

NameTypeAttributeDescription
type *

Return:

string

public expandYear(year: Number): String source

Takes a year and expands it. eg. {in: 2012, out: 2012-13}

Params:

NameTypeAttributeDescription
year Number

the year to expand

Return:

String

the expanded year

public filterByQualification(list: *, qualification: *, fullList: *): * source

import {filterByQualification} from 'gobbldygook/src/lib/filter-by-where-clause.js'

Params:

NameTypeAttributeDescription
list *
qualification *
fullList *

Return:

*

public filterByWhereClause(baseList: *, clause: *, fullList: *): * source

import filterByWhereClause from 'gobbldygook/src/lib/filter-by-where-clause.js'

Params:

NameTypeAttributeDescription
baseList *
clause *
fullList *

Return:

*

public findAreaPath(objectPattern: {"name": *, "type": *, "revision": *}): string source

import findAreaPath from 'gobbldygook/src/lib/find-area-path.js'

Params:

NameTypeAttributeDescription
objectPattern {"name": *, "type": *, "revision": *}
  • default: {"name":null,"type":null,"revision":null}

Return:

string

public findAreasOfStudy(areas: *, degreeType: *): * source

import findAreasOfStudy from 'gobbldygook/src/lib/find-areas-of-study.js'

Params:

NameTypeAttributeDescription
areas *
degreeType *

Return:

*

public findFirstAvailableSemester(schedules: Array | Immutable.List, forYear: Number): Number source

import findFirstAvailableSemester from 'gobbldygook/src/helpers/find-first-available-semester.js'

Takes a list of schedules and finds the first open semester. If they go [1, 2, 4] findFirstAvailableSemester will return 3. If it goes [1, 2, 3] findFirstAvailableSemester will return 4. Etc.

Params:

NameTypeAttributeDescription
schedules Array | Immutable.List

the list of schedules

forYear Number

the year to look within

Return:

Number

the first available semester slot

public findFirstAvailableYear(schedules: Array | Immutable.List, matriculation: Number): Number source

import findFirstAvailableYear from 'gobbldygook/src/helpers/find-first-available-year.js'

Takes a list of schedules and finds the first open year. If they go [2012, 2013, 2015] findFirstAvailableYear will return 2014. If it goes [2013, 2014, 2015] findFirstAvailableYear will return 2016. If schedules is empty, it will return the current year.

Params:

NameTypeAttributeDescription
schedules Array | Immutable.List

the list of schedules

matriculation Number

the year of matriculated

Return:

Number

the first available semester slot

public findLeafRequirements(requirement: Requirement): Course[] source

import findLeafRequirements from 'gobbldygook/src/lib/find-leaf-requirements.js'

Searches recursively through a requirement tree to find all of the leaf requirements – all of the requirements with no children.

Params:

NameTypeAttributeDescription
requirement Requirement

the root requirement

Return:

Course[]

the leaf children

public findMissingNumberBinarySearch(arr: *): * source

import findMissingNumberBinarySearch from 'gobbldygook/src/helpers/find-missing-number-binary-search.js'

Params:

NameTypeAttributeDescription
arr *

Return:

*

public findResults(obj: *): * source

import findResults from 'gobbldygook/src/helpers/find-results.js'

Params:

NameTypeAttributeDescription
obj *

Return:

*

public findWarnings(courses: *, schedule: *): * source

import {findWarnings} from 'gobbldygook/src/lib/find-course-warnings.js'

Params:

NameTypeAttributeDescription
courses *
schedule *

Return:

*

public getCourse(clbid: Number): Promise source

import getCourse from 'gobbldygook/src/lib/get-course.js'

Gets a course from the database.

Params:

NameTypeAttributeDescription
clbid Number

a class/lab ID

Return:

Promise

TreoDatabasePromise

public getCourses(clbids: Array | Immutable.List): Promise[] source

import getCourses from 'gobbldygook/src/lib/get-courses.js'

Gets a list of course ids from the database.

Params:

NameTypeAttributeDescription
clbids Array | Immutable.List

a list of class/lab IDs

Return:

Promise[]

an array of course promises

public getDepartments(courses: Course[]): String[] source

import getDepartments from 'gobbldygook/src/helpers/get-departments.js'

It plucks the departments from a list of courses, and returns the uniq'd list.

Params:

NameTypeAttributeDescription
courses Course[]

the list of courses

Return:

String[]

just the departments

public hasFOL(course: Course): Boolean source

Checks if a course has an FOL gened.

Params:

NameTypeAttributeDescription
course Course

the course to check

Return:

Boolean

if any gereqs are FOL requirements

public humanizeOperator(operator: *): string source

import humanizeOperator from 'gobbldygook/src/lib/humanize-operator.js'

Params:

NameTypeAttributeDescription
operator *

Return:

string

public incrementProgress(id: *, by: number): * source

import {incrementProgress} from 'gobbldygook/src/ducks/notifications.js'

Params:

NameTypeAttributeDescription
id *
by number
  • optional
  • default: 1

Return:

*

public isIntercollegiateSport(course: Course): Boolean source

import isIntercollegiateSport from 'gobbldygook/src/helpers/is-intercollegiate-sport.js'

Only one SPM course credit may be earned by students as a result of participation in an approved intercollegiate sport. This credit must be entered as Exercise Science 171-194 at the registration preceding the sport/participation term.

Params:

NameTypeAttributeDescription
course Course

the course to check

Return:

Boolean

if the course is an intercollegiate sport

public isogram() source

public json(response: *): * source

Params:

NameTypeAttributeDescription
response *

Return:

*

public loadArea(objectPattern: {"name": *, "type": *, "revision": *, "source": *, "isCustom": *}): * source

import {loadArea} from 'gobbldygook/src/models/study.js'

Params:

NameTypeAttributeDescription
objectPattern {"name": *, "type": *, "revision": *, "source": *, "isCustom": *}
  • default: {"name":null,"type":null,"revision":null,"source":null,"isCustom":null}

Return:

*

public loadData(): * source

import loadData from 'gobbldygook/src/lib/load-data.js'

Return:

*

public logError(objectPattern: {"error": *, "quiet": *, "id": *}, args: ...*): * source

Params:

NameTypeAttributeDescription
objectPattern {"error": *, "quiet": *, "id": *}
  • default: {"error":null,"quiet":null,"id":null}
args ...*

Return:

*

public logMessage(id: *, message: *): * source

import {logMessage} from 'gobbldygook/src/ducks/notifications.js'

Params:

NameTypeAttributeDescription
id *
message *

Return:

*

public makeStudent(tables: *, degreeType: *): * source

import makeStudent from 'gobbldygook/src/lib/make-student.js'

Params:

NameTypeAttributeDescription
tables *
degreeType *

Return:

*

public migrateFromOldSave(objectPattern: {"id": *, "revisionYear": *}): * source

import {migrateFromOldSave} from 'gobbldygook/src/models/study.js'

Params:

NameTypeAttributeDescription
objectPattern {"id": *, "revisionYear": *}
  • default: {"id":null,"revisionYear":null}

Return:

*

public nameTheTables(tables: *): * source

import nameTheTables from 'gobbldygook/src/lib/name-the-tables.js'

Params:

NameTypeAttributeDescription
tables *

Return:

*

public onlyQuarterCreditCoursesCanBePassFail(course: Course): boolean source

import onlyQuarterCreditCoursesCanBePassFail from 'gobbldygook/src/helpers/only-quarter-credit-courses-can-be-pass-fail.js'

Params:

NameTypeAttributeDescription
course Course

Return:

boolean

public parseDataFromHTML(): * source

import parseDataFromHTML from 'gobbldygook/src/lib/parse-data-from-html.js'

Return:

*

public parseDataFromJSON(jsonData: *): * source

import parseDataFromJSON from 'gobbldygook/src/lib/parse-data-from-json.js'

Params:

NameTypeAttributeDescription
jsonData *

Return:

*

public parseSIS(html: *): * source

import parseSIS from 'gobbldygook/src/lib/parse-sis.js'

Params:

NameTypeAttributeDescription
html *

Return:

*

public plugin(db: *, treo: *) source

Params:

NameTypeAttributeDescription
db *
treo *

public plugin(db: *, treo: *) source

Params:

NameTypeAttributeDescription
db *
treo *

public prepareCourseForQuery(course: *): * source

import prepareCourseForQuery from 'gobbldygook/src/lib/prepare-course-for-query.js'

Params:

NameTypeAttributeDescription
course *

Return:

*

public prettifyCourses(jsonCourses: *): * source

import prettifyCourses from 'gobbldygook/src/lib/prettify-courses.js'

Params:

NameTypeAttributeDescription
jsonCourses *

Return:

*

public processAreaTable(areaTable: *): * source

import processAreaTable from 'gobbldygook/src/lib/process-area-table.js'

Params:

NameTypeAttributeDescription
areaTable *

Return:

*

public processCoursesTable(coursesTable: *): * source

import processCoursesTable from 'gobbldygook/src/lib/process-courses-table.js'

Params:

NameTypeAttributeDescription
coursesTable *

Return:

*

public processGradTable(gradTable: *): * source

import processGradTable from 'gobbldygook/src/lib/process-grad-table.js'

Params:

NameTypeAttributeDescription
gradTable *

Return:

*

public processInfoTable(infoTable: *): * source

import processInfoTable from 'gobbldygook/src/lib/process-info-table.js'

Params:

NameTypeAttributeDescription
infoTable *

Return:

*

public quacksLikeDeptNum(deptNumString: String): Boolean source

import quacksLikeDeptNum from 'gobbldygook/src/helpers/quacks-like-dept-num.js'

Checks if a string looks like a deptnum.

Params:

NameTypeAttributeDescription
deptNumString String

the deptnum

Return:

Boolean

does it quack like a deptnum?

public queryCourseDatabase(queryString: *, baseQuery: {}): * source

import queryCourseDatabase from 'gobbldygook/src/lib/query-course-database.js'

Params:

NameTypeAttributeDescription
queryString *
baseQuery {}
  • optional
  • default: {}

Return:

*

public queryCourses(queryObj: Object, courses: Array<Course>): Array<Course> source

import queryCourses from 'gobbldygook/src/helpers/query-courses.js'

Queries the database for courses.

Params:

NameTypeAttributeDescription
queryObj Object

the query

courses Array<Course>

the courses to query

Return:

Array<Course>

the courses that matched the query

public reducer(state: *, action: *): * source

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: initialState
action *

Return:

*

public removeNotification(id: *): * source

import {removeNotification} from 'gobbldygook/src/ducks/notifications.js'

Params:

NameTypeAttributeDescription
id *

Return:

*

public searchForCourseMatches(queryObject: *): * source

import searchForCourseMatches from 'gobbldygook/src/lib/search-for-course-matches.js'

Params:

NameTypeAttributeDescription
queryObject *

Return:

*

public semesterName(semester: Number): String source

import semesterName from 'gobbldygook/src/helpers/semester-name.js'

Takes a semester number and returns the associated semester string.

Params:

NameTypeAttributeDescription
semester Number

the semester (number)

Return:

String

the nice semester name

public slugifyAreaName(name: *): * source

import {slugifyAreaName} from 'gobbldygook/src/lib/find-area-path.js'

Params:

NameTypeAttributeDescription
name *

Return:

*

public splitDeptNum(deptNumString: String, includeSection: Boolean): Object source

Splits a deptnum string (like "AS/RE 230A") into its components, like {depts: ['AS', 'RE'], num: 230, sect: 'A'}.

Params:

NameTypeAttributeDescription
deptNumString String

the deptnum to split

includeSection Boolean

include the section in the result?

Return:

Object

the result

public splitParagraph(string: string): * source

import splitParagraph from 'gobbldygook/src/helpers/split-paragraph.js'

Params:

NameTypeAttributeDescription
string string
  • optional
  • default:

Return:

*

public startProgress(id: *, message: string, objectPattern2: {"value": *, "max": *, "showButton": *}): * source

import {startProgress} from 'gobbldygook/src/ducks/notifications.js'

Params:

NameTypeAttributeDescription
id *
message string
  • optional
  • default:
objectPattern2 {"value": *, "max": *, "showButton": *}
  • optional
  • default: {}

Return:

*

public status(response: *): * source

Params:

NameTypeAttributeDescription
response *

Return:

*

public tableToJson(table: *): * source

import tableToJson from 'gobbldygook/src/lib/table-to-json.js'

Params:

NameTypeAttributeDescription
table *

Return:

*

public text(response: *): * source

Params:

NameTypeAttributeDescription
response *

Return:

*

public toPrettyTerm(term: Number): String source

Takes a term and makes it pretty. eg. {in: 20121, out: Fall 2012-13}

Params:

NameTypeAttributeDescription
term Number

a term identifier.

Return:

String

the prettied term

public unescapeAllValues(obj: *): * source

import unescapeAllValues from 'gobbldygook/src/lib/unescape-all-values.js'

Params:

NameTypeAttributeDescription
obj *

Return:

*

public zipToObjectWithArrays(keys: *, vals: *): * source

import zipToObjectWithArrays from 'gobbldygook/src/helpers/zip-to-object-with-arrays.js'

Params:

NameTypeAttributeDescription
keys *
vals *

Return:

*