Namespace

api/star

api/star

Members

# static constant exports.starBulkLoadDataMethod

ValidatedMethod for loading bulk STAR data.

View Source api/star/StarProcessor.methods.ts, line 203

# static constant exports.starLoadDataMethod

ValidatedMethod for loading student STAR data.

View Source api/star/StarProcessor.methods.ts, line 115

# static constant exports.starLoadJsonDataMethod

ValidatedMethod for loading student STAR JSON data.

View Source api/star/StarProcessor.methods.ts, line 129

Methods

# static exports.processBulkStarJsonData(jsonData) → {Array}

Processes STAR JSON data and returns an array of objects containing CourseInstance fields.

Parameters:
Name Type Description
jsonData Array

JSON array with objects for students.

View Source api/star/StarProcessor.ts, line 313

A list of objects with fields: academicTerm, course, note, verified, grade, and creditHrs.

Array

# static exports.processStarCsvData(student, csvData) → {Array}

Processes STAR CSV data and returns an array of objects containing CourseInstance fields.

Parameters:
Name Type Description
student String

The slug of the student corresponding to this STAR data.

csvData String

A string containing the contents of a CSV file downloaded from STAR.

Deprecated:
  • Yes

View Source api/star/StarProcessor.ts, line 114

A list of objects with fields: academicTerm, course, note, verified, grade, and creditHrs.

Array

# static exports.processStarJsonData(student, jsonData) → {Array}

Processes STAR JSON data and returns an array of objects containing CourseInstance fields.

Parameters:
Name Type Description
student String

The slug of the student corresponding to this STAR data.

jsonData String

JSON object for a student.

View Source api/star/StarProcessor.ts, line 266

A list of objects with fields: academicTerm, course, note, verified, grade, and creditHrs.

Array

# static filterParsedData(parsedData) → {Array}

Returns an array of arrays, each containing data that can be made into CourseInstances.

Parameters:
Name Type Description
parsedData

The parsedData object returned from Papa.parse.

View Source api/star/StarProcessor.ts, line 95

A new array with extraneous elements deleted.

Array

# static findAcademicTermSlug(academicTerm) → {String}

Given the semester string from STAR (for example, 'Fall 2015 ext'), parses it, defines the corresponding academicTerm, and returns the AcademicTerm slug.

Parameters:
Name Type Description
academicTerm

The STAR semester string.

View Source api/star/StarProcessor.ts, line 17

Meteor.Error If parsing fails.

The RadGrad academicTerm slug.

String

# static findCourseSlug(starDataObject) → {String}

Returns the course slug, which is either an ICS course or 'other.

Parameters:
Name Type Description
starDataObject

The data object.

View Source api/star/StarProcessor.ts, line 64

The slug.

String

# static makeCourseInstanceObject(starDataObject) → {Object}

Creates a courseInstance data object from the passed arguments.

Parameters:
Name Type Description
starDataObject

STAR data.

View Source api/star/StarProcessor.ts, line 77

An object suitable for passing to CourseInstances.define.

Object

# static processBulkStarData(advisor, csvData)

Processes the bulk star data creating CourseInstances.

Parameters:
Name Type Description
advisor

the advisor's username.

csvData

the student's STAR data.

View Source api/star/StarProcessor.methods.ts, line 183

# static processBulkStarDataJson(advisor, jsonData)

Processes the bulk star data creating CourseInstances.

Parameters:
Name Type Description
advisor

the advisor's username.

jsonData

the student's STAR JSON data.

View Source api/star/StarProcessor.methods.ts, line 193

# static processStudentStarCsvData(advisor, student, csvData)

Processes the student's star data creating CourseInstances.

Parameters:
Name Type Description
advisor

the advisor's username.

student

the student's username.

csvData

the student's STAR data.

View Source api/star/StarProcessor.methods.ts, line 95

# static processStudentStarJsonData(advisor, student, jsonData)

Processes the student's star json data creating CourseInstances.

Parameters:
Name Type Description
advisor

the advisor's username.

student

the student's username.

jsonData

the student's STAR data as JSON object.

View Source api/star/StarProcessor.methods.ts, line 107