Function
Static Public Summary | ||
public |
addCoursePurchaser(info,: object): object adds purchasers to coursePurchasers |
|
public |
approveUser(user: object): object Gets user information passed in and will create the account for the user and remove the old user from the signup list. |
|
public |
changeMenu(menuNum: object): object sidebar options for profile page |
|
public |
fetchACourse(courseName: object): object Grabs the courseName from the Course in the database. |
|
public |
Grabs the addition resources from the additional resouce SignUp list in the database. |
|
public |
Grabs the purchasers from the Purchaser SignUp list in the database. |
|
public |
Grabs the bookmarks from the database. |
|
public |
Grabs the courses from the CourseList in the database. |
|
public |
Grabs the courses from the course child in the database. |
|
public |
Grabs the eoikey from the database. |
|
public |
Grabs the EOIs from the database. |
|
public |
Grabs the key and role from the database. |
|
public |
Grabs the notifcation from the database. |
|
public |
Grabs the purchasers from the Purchaser SignUp list in the database. |
|
public |
Grabs the RFPfromEOIs from the database. |
|
public |
Grabs the rfpkey from the database. |
|
public |
Grabs the RFPs from the database. |
|
public |
Grabs the ReqEOIs from the database. |
|
public |
fetchUsers(): object Grabs the Users from the database. |
|
public |
fetchVendorCourse(email: object): object Grabs the vendor courses from the Vendor Course in the database. |
|
public |
Grabs the vendors from the Vendor SignUp list in the database. |
|
public |
Checks to see if the user is logged in and then returns information about the current user logged in. |
|
public |
Logs in the user using firebase authentication and sets notifications to false, error if invalid information. |
|
public |
logOutUser(): object Logs out the user using firebase authentication. |
|
public |
Profile Reducer |
|
public |
Course Reducer |
|
public |
User Reducer |
|
public |
rejectUser(user: object): object Gets user information passed in and will remove the user from the signup list. |
|
public |
removeBookmark(bookmarks: object): * removes the bookmark from the database. |
|
public |
removeEOI(info: *): * Removes from EOI table |
|
public |
removeRFP(key: *): * Removes from RFP table |
|
public |
saveACourse(courseName: object): object Saves a course to the database. |
|
public |
setBookmarks(bookmarks: object): * sets the bookmarks from the database. |
|
public |
setNotificationAdmin(): * sets the notifcation from the database. |
|
public |
Gets additional resource user information passed in and will add the user to the additional resource signup list. |
|
public |
signUpPurchaser(user: object): object Gets purchaser user information passed in and will add the user to the purchaser signup list. |
|
public |
signUpVendor(user: object): object Gets vendor user information passed in and will add the user to the vendor signup list. |
|
public |
sortByName(courseList: object): object Sort the course by name. |
|
public |
sortByVendorEmail(courseList: object): object Sort the course by vendor's email. |
|
public |
storeEOIkey(info: object): object sets the eoikey. |
|
public |
sets the EOI to the database. |
|
public |
storeKeyRole(data: object): object sets the key and role to the database. |
|
public |
storeRFPkey(info: object): object sets the rfpkey. |
|
public |
sets the RFP to the database. |
|
public |
storeReqEOI(data: object): object sets the ReqEOI to the database. |
|
public |
submitRFPfromEOI(info: object): object submits RFP prompt from EOI details. |
|
public |
updateCourse(course,: object): object updates course |
|
public |
updateProfile(user: *): object Updates user profile. |
|
public |
updates RFP |
|
public |
uploadAnnualReport(email: *, fileObj: *): object Upload vendor's annual report. |
|
public |
uploadCourse(course: object): object Upload a course into the database. |
|
public |
uploadCourseDetail(user: *, fileObj: *): * |
|
public |
uploadCourseFiles(course,: object): object upload course files |
Static Public
public addCoursePurchaser(info,: object): object source
import {addCoursePurchaser} from 'learnenergy401/component/Actions/courseActions.js'
adds purchasers to coursePurchasers
Params:
Name | Type | Attribute | Description |
info, | object | courseID - information on course and purchaser id |
Throw:
err - Returns an error if failed to fetch from database. |
public approveUser(user: object): object source
import {approveUser} from 'learnenergy401/component/Actions/userActions.js'
Gets user information passed in and will create the account for the user and remove the old user from the signup list.
Params:
Name | Type | Attribute | Description |
user | object | object which contains information for us to register into firebase with and store in our database. |
Throw:
err - Returns an error if failed to grab, remove from database or add to firebase. |
public changeMenu(menuNum: object): object source
import {changeMenu} from 'learnenergy401/component/Actions/profileActions.js'
sidebar options for profile page
Params:
Name | Type | Attribute | Description |
menuNum | object | object of menuNum |
public fetchACourse(courseName: object): object source
import {fetchACourse} from 'learnenergy401/component/Actions/courseActions.js'
Grabs the courseName from the Course in the database.
Params:
Name | Type | Attribute | Description |
courseName | object | Object containing course names |
Throw:
err - Returns an error if failed to fetch from database. |
public fetchADSignup(): object source
import {fetchADSignup} from 'learnenergy401/component/Actions/userActions.js'
Grabs the addition resources from the additional resouce SignUp list in the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchAdminSignup(): object source
import {fetchAdminSignup} from 'learnenergy401/component/Actions/userActions.js'
Grabs the purchasers from the Purchaser SignUp list in the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchBookmarks(): object source
import {fetchBookmarks} from 'learnenergy401/component/Actions/userActions.js'
Grabs the bookmarks from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchCourse(): object source
import {fetchCourse} from 'learnenergy401/component/Actions/courseActions.js'
Grabs the courses from the CourseList in the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchCourseList(): object source
import {fetchCourseList} from 'learnenergy401/component/Actions/courseActions.js'
Grabs the courses from the course child in the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchEOIkey(): object source
import {fetchEOIkey} from 'learnenergy401/component/Actions/userActions.js'
Grabs the eoikey from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchEOIs(): object source
import {fetchEOIs} from 'learnenergy401/component/Actions/userActions.js'
Grabs the EOIs from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchKeyRole(): object source
import {fetchKeyRole} from 'learnenergy401/component/Actions/userActions.js'
Grabs the key and role from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchNotificationAdmin(): object source
import {fetchNotificationAdmin} from 'learnenergy401/component/Actions/userActions.js'
Grabs the notifcation from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchPurchaserSignup(): object source
import {fetchPurchaserSignup} from 'learnenergy401/component/Actions/userActions.js'
Grabs the purchasers from the Purchaser SignUp list in the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchRFPfromEOI(): object source
import {fetchRFPfromEOI} from 'learnenergy401/component/Actions/userActions.js'
Grabs the RFPfromEOIs from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchRFPkey(): object source
import {fetchRFPkey} from 'learnenergy401/component/Actions/userActions.js'
Grabs the rfpkey from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchRFPs(): object source
import {fetchRFPs} from 'learnenergy401/component/Actions/userActions.js'
Grabs the RFPs from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchReqEOI(): object source
import {fetchReqEOI} from 'learnenergy401/component/Actions/userActions.js'
Grabs the ReqEOIs from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchUsers(): object source
import {fetchUsers} from 'learnenergy401/component/Actions/userActions.js'
Grabs the Users from the database.
Throw:
err - Returns an error if failed to fetch from database. |
public fetchVendorCourse(email: object): object source
import {fetchVendorCourse} from 'learnenergy401/component/Actions/courseActions.js'
Grabs the vendor courses from the Vendor Course in the database.
Params:
Name | Type | Attribute | Description |
object | object containing email |
Throw:
err - Returns an error if failed to fetch from database. |
public fetchVendorSignup(): object source
import {fetchVendorSignup} from 'learnenergy401/component/Actions/userActions.js'
Grabs the vendors from the Vendor SignUp list in the database.
Throw:
err - Returns an error if failed to fetch from database. |
public getCurrentUser(): object source
import {getCurrentUser} from 'learnenergy401/component/Actions/userActions.js'
Checks to see if the user is logged in and then returns information about the current user logged in.
Throw:
err - Returns an error if failed to find current logged in user. |
public logInUser(user: object): object source
import {logInUser} from 'learnenergy401/component/Actions/userActions.js'
Logs in the user using firebase authentication and sets notifications to false, error if invalid information.
Params:
Name | Type | Attribute | Description |
user | object | object which contains information about the user to log in with. |
Throw:
err - Returns an error if failed to login. |
public logOutUser(): object source
import {logOutUser} from 'learnenergy401/component/Actions/userActions.js'
Logs out the user using firebase authentication.
Throw:
err - Returns an error if fail to logout. |
public reducer(action: object): state source
import reducer from 'learnenergy401/component/Reducers/profileReducer.js'
Profile Reducer
Params:
Name | Type | Attribute | Description |
action | object |
public reducer(action: object): state source
import reducer from 'learnenergy401/component/Reducers/courseReducer.js'
Course Reducer
Params:
Name | Type | Attribute | Description |
action | object |
public reducer(action: object): state source
import reducer from 'learnenergy401/component/Reducers/userReducer.js'
User Reducer
Params:
Name | Type | Attribute | Description |
action | object |
public rejectUser(user: object): object source
import {rejectUser} from 'learnenergy401/component/Actions/userActions.js'
Gets user information passed in and will remove the user from the signup list.
Params:
Name | Type | Attribute | Description |
user | object | object which contains information about the user. |
Throw:
err - Returns an error if failed to remove from database. |
public removeBookmark(bookmarks: object): * source
import {removeBookmark} from 'learnenergy401/component/Actions/userActions.js'
removes the bookmark from the database.
Params:
Name | Type | Attribute | Description |
bookmarks | object | information on bookmarks |
Return:
* |
Throw:
err - Returns an error if failed to fetch from database. |
public removeEOI(info: *): * source
import {removeEOI} from 'learnenergy401/component/Actions/userActions.js'
Removes from EOI table
Params:
Name | Type | Attribute | Description |
info | * |
Return:
* |
public removeRFP(key: *): * source
import {removeRFP} from 'learnenergy401/component/Actions/userActions.js'
Removes from RFP table
Params:
Name | Type | Attribute | Description |
key | * |
Return:
* |
public saveACourse(courseName: object): object source
import {saveACourse} from 'learnenergy401/component/Actions/courseActions.js'
Saves a course to the database.
Params:
Name | Type | Attribute | Description |
courseName | object | Object containing course names |
Throw:
err - Returns an error if failed to fetch from database. |
public setBookmarks(bookmarks: object): * source
import {setBookmarks} from 'learnenergy401/component/Actions/userActions.js'
sets the bookmarks from the database.
Params:
Name | Type | Attribute | Description |
bookmarks | object | information on bookmarks |
Return:
* |
Throw:
err - Returns an error if failed to fetch from database. |
public setNotificationAdmin(): * source
import {setNotificationAdmin} from 'learnenergy401/component/Actions/userActions.js'
sets the notifcation from the database.
Return:
* |
Throw:
err - Returns an error if failed to fetch from database. |
public signUpAD(user: object): object source
import {signUpAD} from 'learnenergy401/component/Actions/userActions.js'
Gets additional resource user information passed in and will add the user to the additional resource signup list.
Params:
Name | Type | Attribute | Description |
user | object | object which contains information about the user additional resource. |
Throw:
err - Returns an error if failed to push to database. |
public signUpPurchaser(user: object): object source
import {signUpPurchaser} from 'learnenergy401/component/Actions/userActions.js'
Gets purchaser user information passed in and will add the user to the purchaser signup list.
Params:
Name | Type | Attribute | Description |
user | object | object which contains information about the user purchaser. |
Throw:
err - Returns an error if failed to push to database. |
public signUpVendor(user: object): object source
import {signUpVendor} from 'learnenergy401/component/Actions/userActions.js'
Gets vendor user information passed in and will add the user to the vendor signup list.
Params:
Name | Type | Attribute | Description |
user | object | object which contains information about the user vendor. |
Throw:
err - Returns an error if failed to push to database. |
public sortByName(courseList: object): object source
import {sortByName} from 'learnenergy401/component/Actions/courseActions.js'
Sort the course by name.
Params:
Name | Type | Attribute | Description |
courseList | object | Object containing course list |
public sortByVendorEmail(courseList: object): object source
import {sortByVendorEmail} from 'learnenergy401/component/Actions/courseActions.js'
Sort the course by vendor's email.
Params:
Name | Type | Attribute | Description |
courseList | object | Object containing course list |
public storeEOIkey(info: object): object source
import {storeEOIkey} from 'learnenergy401/component/Actions/userActions.js'
sets the eoikey.
Params:
Name | Type | Attribute | Description |
info | object | object which contains information about the eoikey. |
Throw:
err - Returns an error if failed to push to database. |
public storeEOIs(data: object): object source
import {storeEOIs} from 'learnenergy401/component/Actions/userActions.js'
sets the EOI to the database.
Params:
Name | Type | Attribute | Description |
data | object | object which contains information about the eoi. |
Throw:
err - Returns an error if failed to push to database. |
public storeKeyRole(data: object): object source
import {storeKeyRole} from 'learnenergy401/component/Actions/userActions.js'
sets the key and role to the database.
Params:
Name | Type | Attribute | Description |
data | object | object which contains information about the key and role of the user. |
Throw:
err - Returns an error if failed to push to database. |
public storeRFPkey(info: object): object source
import {storeRFPkey} from 'learnenergy401/component/Actions/userActions.js'
sets the rfpkey.
Params:
Name | Type | Attribute | Description |
info | object | object which contains information about the eoikey. |
Throw:
err - Returns an error if failed to push to database. |
public storeRFPs(data: object): object source
import {storeRFPs} from 'learnenergy401/component/Actions/userActions.js'
sets the RFP to the database.
Params:
Name | Type | Attribute | Description |
data | object | object which contains information about the rfp. |
Throw:
err - Returns an error if failed to push to database. |
public storeReqEOI(data: object): object source
import {storeReqEOI} from 'learnenergy401/component/Actions/userActions.js'
sets the ReqEOI to the database.
Params:
Name | Type | Attribute | Description |
data | object | object which contains information about the reqeoi. |
Throw:
err - Returns an error if failed to push to database. |
public submitRFPfromEOI(info: object): object source
import {submitRFPfromEOI} from 'learnenergy401/component/Actions/userActions.js'
submits RFP prompt from EOI details.
Params:
Name | Type | Attribute | Description |
info | object | object which contains information about the vendor for rfp. |
Throw:
err - Returns an error if failed to push to database. |
public updateCourse(course,: object): object source
import {updateCourse} from 'learnenergy401/component/Actions/courseActions.js'
updates course
Params:
Name | Type | Attribute | Description |
course, | object | courseID - information on course |
Throw:
err - Returns an error if failed to fetch from database. |
public updateProfile(user: *): object source
import {updateProfile} from 'learnenergy401/component/Actions/userActions.js'
Updates user profile.
Params:
Name | Type | Attribute | Description |
user | * |
Throw:
err - Returns an error if fail to logout. |
public updateRFP(RFP: object): object source
import {updateRFP} from 'learnenergy401/component/Actions/userActions.js'
updates RFP
Params:
Name | Type | Attribute | Description |
RFP | object | information on RFP |
Throw:
err - Returns an error if failed to fetch from database. |
public uploadAnnualReport(email: *, fileObj: *): object source
import {uploadAnnualReport} from 'learnenergy401/component/Actions/userActions.js'
Upload vendor's annual report.
Params:
Name | Type | Attribute | Description |
* | |||
fileObj | * |
Throw:
err - Returns an error if fail to logout. |
public uploadCourse(course: object): object source
import {uploadCourse} from 'learnenergy401/component/Actions/courseActions.js'
Upload a course into the database.
Params:
Name | Type | Attribute | Description |
course | object | object containing course info |
Throw:
err - Returns an error if failed to fetch from database. |
public uploadCourseDetail(user: *, fileObj: *): * source
import {uploadCourseDetail} from 'learnenergy401/component/Actions/courseActions.js'
Params:
Name | Type | Attribute | Description |
user | * | ||
fileObj | * |
Return:
* |
public uploadCourseFiles(course,: object): object source
import {uploadCourseFiles} from 'learnenergy401/component/Actions/courseActions.js'
upload course files
Params:
Name | Type | Attribute | Description |
course, | object | courseID, fileObj - information on course and selected file |
Throw:
err - Returns an error if failed to fetch from database. |