Namespace

api/star

api/star

Members

# static constant exports.processBulkStarJsonData

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

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

# static constant exports.processStarCsvData

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

Deprecated:
  • Yes

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

# static constant exports.processStarJsonData

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

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

# static constant exports.starBulkLoadDataMethod

ValidatedMethod for loading bulk STAR data.

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

# static constant exports.starLoadDataMethod

ValidatedMethod for loading student STAR data.

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

# static constant exports.starLoadJsonDataMethod

ValidatedMethod for loading student STAR JSON data.

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

Methods

# 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 93

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 90

# 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 102