Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smarterservices/sp-public-client

Package Overview
Dependencies
Maintainers
4
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smarterservices/sp-public-client - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

1023

index.js

@@ -66,11 +66,11 @@ /*jshint -W069 */

/**
* Updates an incident for a given session
* Will return an array of videos that contained signed urls and other metadata
* @method
* @name Client#createIncident
* @param {string} incidentNumber -
* @param {string} sessionId -
* @name Client#getVideos
* @param {string} token -
* @param {string} userId -
* @param {} body -
*
*/
Client.prototype.createIncident = function(parameters) {
Client.prototype.getVideos = function(parameters) {
if (parameters === undefined) {

@@ -82,3 +82,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/incidents/{incident_number}';
var path = '/v1/{userId}/videos';

@@ -90,13 +90,15 @@ var body;

path = path.replace('{incident_number}', parameters['incidentNumber']);
if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
if (parameters['incidentNumber'] === undefined) {
deferred.reject(new Error('Missing required parameter: incidentNumber'));
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
return deferred.promise;
}
path = path.replace('{session_id}', parameters['sessionId']);
path = path.replace('{userId}', parameters['userId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
if (parameters['userId'] === undefined) {
deferred.reject(new Error('Missing required parameter: userId'));
return deferred.promise;

@@ -117,3 +119,3 @@ }

this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -123,10 +125,58 @@ return deferred.promise;

/**
* delete incident for a given session
* Get instructor details
* @method
* @name Client#listIncidents
* @name Client#getInstructor
* @param {string} courseId -
* @param {string} instructorId -
*
*/
Client.prototype.getInstructor = function(parameters) {
if (parameters === undefined) {
parameters = {};
}
var deferred = Q.defer();
var domain = this.domain;
var path = '/v1/courses/{course_id}/instructors/{instructor_id}';
var body;
var queryParameters = {};
var headers = {};
var form = {};
path = path.replace('{course_id}', parameters['courseId']);
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
return deferred.promise;
}
path = path.replace('{instructor_id}', parameters['instructorId']);
if (parameters['instructorId'] === undefined) {
deferred.reject(new Error('Missing required parameter: instructorId'));
return deferred.promise;
}
if (parameters.$queryParameters) {
Object.keys(parameters.$queryParameters)
.forEach(function(parameterName) {
var parameter = parameters.$queryParameters[parameterName];
queryParameters[parameterName] = parameter;
});
}
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
return deferred.promise;
};
/**
* This endpoint is used to delete an event for a session
* @method
* @name Client#deleteEvent
* @param {string} sessionId -
* @param {string} incidentNumber -
* @param {string} eventId -
*
*/
Client.prototype.listIncidents = function(parameters) {
Client.prototype.deleteEvent = function(parameters) {
if (parameters === undefined) {

@@ -138,3 +188,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/incidents/{incident_number}';
var path = '/v1/{sessionId}/events/{eventId}';

@@ -146,3 +196,3 @@ var body;

path = path.replace('{session_id}', parameters['sessionId']);
path = path.replace('{sessionId}', parameters['sessionId']);

@@ -154,6 +204,6 @@ if (parameters['sessionId'] === undefined) {

path = path.replace('{incident_number}', parameters['incidentNumber']);
path = path.replace('{eventId}', parameters['eventId']);
if (parameters['incidentNumber'] === undefined) {
deferred.reject(new Error('Missing required parameter: incidentNumber'));
if (parameters['eventId'] === undefined) {
deferred.reject(new Error('Missing required parameter: eventId'));
return deferred.promise;

@@ -223,8 +273,10 @@ }

/**
* Get all corrective_action_types
* Start a new session and create permissions
* @method
* @name Client#getCorrectiveActionTypes
* @name Client#startSession
* @param {string} sessionId - Access Key
* @param {} body -
*
*/
Client.prototype.getCorrectiveActionTypes = function(parameters) {
Client.prototype.startSession = function(parameters) {
if (parameters === undefined) {

@@ -236,3 +288,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/incidents/corrective_action_types';
var path = '/v1/sessions/{session_id}/start';

@@ -244,2 +296,13 @@ var body;

path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
}
if (parameters.$queryParameters) {

@@ -253,3 +316,3 @@ Object.keys(parameters.$queryParameters)

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -259,8 +322,7 @@ return deferred.promise;

/**
* List incidents for a given session
* delete incident for a given session
* @method
* @name Client#listIncidents
* @param {string} sessionId -
* @param {string} page -
* @param {string} pageSize -
* @param {string} incidentNumber -
*

@@ -275,3 +337,3 @@ */

var domain = this.domain;
var path = '/v1/sessions/{session_id}/incidents';
var path = '/v1/sessions/{session_id}/incidents/{incident_number}';

@@ -290,8 +352,7 @@ var body;

if (parameters['page'] !== undefined) {
queryParameters['page'] = parameters['page'];
}
path = path.replace('{incident_number}', parameters['incidentNumber']);
if (parameters['pageSize'] !== undefined) {
queryParameters['page_size'] = parameters['pageSize'];
if (parameters['incidentNumber'] === undefined) {
deferred.reject(new Error('Missing required parameter: incidentNumber'));
return deferred.promise;
}

@@ -307,3 +368,3 @@

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('DELETE', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -313,5 +374,6 @@ return deferred.promise;

/**
* Creates an incident for a given session
* Updates an incident for a given session
* @method
* @name Client#createIncident
* @param {string} incidentNumber -
* @param {string} sessionId -

@@ -328,3 +390,3 @@ * @param {} body -

var domain = this.domain;
var path = '/v1/sessions/{session_id}/incidents';
var path = '/v1/sessions/{session_id}/incidents/{incident_number}';

@@ -336,2 +398,9 @@ var body;

path = path.replace('{incident_number}', parameters['incidentNumber']);
if (parameters['incidentNumber'] === undefined) {
deferred.reject(new Error('Missing required parameter: incidentNumber'));
return deferred.promise;
}
path = path.replace('{session_id}', parameters['sessionId']);

@@ -356,3 +425,3 @@

this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -362,13 +431,91 @@ return deferred.promise;

/**
* Sign an agreement
* List sessions for a given exam
* @method
* @name Client#signAgreements
* @param {string} token -
* @name Client#listSessions
* @param {string} examId -
*
*/
Client.prototype.listSessions = function(parameters) {
if (parameters === undefined) {
parameters = {};
}
var deferred = Q.defer();
var domain = this.domain;
var path = '/v1/exams/{exam_id}/sessions';
var body;
var queryParameters = {};
var headers = {};
var form = {};
path = path.replace('{exam_id}', parameters['examId']);
if (parameters['examId'] === undefined) {
deferred.reject(new Error('Missing required parameter: examId'));
return deferred.promise;
}
if (parameters.$queryParameters) {
Object.keys(parameters.$queryParameters)
.forEach(function(parameterName) {
var parameter = parameters.$queryParameters[parameterName];
queryParameters[parameterName] = parameter;
});
}
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
return deferred.promise;
};
/**
* List all exams for a course
* @method
* @name Client#listExams
* @param {string} courseId -
*
*/
Client.prototype.listExams = function(parameters) {
if (parameters === undefined) {
parameters = {};
}
var deferred = Q.defer();
var domain = this.domain;
var path = '/v1/courses/{course_id}/exams';
var body;
var queryParameters = {};
var headers = {};
var form = {};
path = path.replace('{course_id}', parameters['courseId']);
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
return deferred.promise;
}
if (parameters.$queryParameters) {
Object.keys(parameters.$queryParameters)
.forEach(function(parameterName) {
var parameter = parameters.$queryParameters[parameterName];
queryParameters[parameterName] = parameter;
});
}
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
return deferred.promise;
};
/**
* This endpoint is used to update an event for a session
* @method
* @name Client#updateEvent
* @param {string} eventId -
* @param {string} sessionId -
* @param {string} agreementId -
* @param {string} versionId -
* @param {} body -
*
*/
Client.prototype.signAgreements = function(parameters) {
Client.prototype.updateEvent = function(parameters) {
if (parameters === undefined) {

@@ -380,3 +527,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/agreements/{agreement_id}/versions/{version_id}/sign';
var path = '/v1/{sessionId}/event/{eventId}';

@@ -388,12 +535,10 @@ var body;

if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
path = path.replace('{eventId}', parameters['eventId']);
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
if (parameters['eventId'] === undefined) {
deferred.reject(new Error('Missing required parameter: eventId'));
return deferred.promise;
}
path = path.replace('{session_id}', parameters['sessionId']);
path = path.replace('{sessionId}', parameters['sessionId']);

@@ -405,13 +550,44 @@ if (parameters['sessionId'] === undefined) {

path = path.replace('{agreement_id}', parameters['agreementId']);
if (parameters['body'] !== undefined) {
body = parameters['body'];
}
if (parameters['agreementId'] === undefined) {
deferred.reject(new Error('Missing required parameter: agreementId'));
return deferred.promise;
if (parameters.$queryParameters) {
Object.keys(parameters.$queryParameters)
.forEach(function(parameterName) {
var parameter = parameters.$queryParameters[parameterName];
queryParameters[parameterName] = parameter;
});
}
path = path.replace('{version_id}', parameters['versionId']);
this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
if (parameters['versionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: versionId'));
return deferred.promise;
};
/**
* This endpoint is used to upload headshot for a proctor
* @method
* @name Client#uploadProctorImage
* @param {string} userId -
* @param {} body -
*
*/
Client.prototype.uploadProctorImage = function(parameters) {
if (parameters === undefined) {
parameters = {};
}
var deferred = Q.defer();
var domain = this.domain;
var path = '/v1/proctor/{user_id}/images';
var body;
var queryParameters = {};
var headers = {};
var form = {};
path = path.replace('{user_id}', parameters['userId']);
if (parameters['userId'] === undefined) {
deferred.reject(new Error('Missing required parameter: userId'));
return deferred.promise;

@@ -437,10 +613,9 @@ }

/**
* Will return return details about a single course
* This endpoint is used to get an image list for an proctor
* @method
* @name Client#getCourse
* @param {string} courseId -
* @param {string} institutionId -
* @name Client#listProctorImages
* @param {string} userId -
*
*/
Client.prototype.getCourse = function(parameters) {
Client.prototype.listProctorImages = function(parameters) {
if (parameters === undefined) {

@@ -452,3 +627,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/institutions/{institution_id}/courses/{course_id}';
var path = '/v1/proctor/{user_id}/images';

@@ -460,16 +635,9 @@ var body;

path = path.replace('{course_id}', parameters['courseId']);
path = path.replace('{user_id}', parameters['userId']);
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
if (parameters['userId'] === undefined) {
deferred.reject(new Error('Missing required parameter: userId'));
return deferred.promise;
}
path = path.replace('{institution_id}', parameters['institutionId']);
if (parameters['institutionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: institutionId'));
return deferred.promise;
}
if (parameters.$queryParameters) {

@@ -488,10 +656,10 @@ Object.keys(parameters.$queryParameters)

/**
* This endpoint is used to get playback tokens for a user
* Will return return details about a single course
* @method
* @name Client#playbackToken
* @param {string} sessionId -
* @param {} body -
* @name Client#getCourse
* @param {string} courseId -
* @param {string} institutionId -
*
*/
Client.prototype.playbackToken = function(parameters) {
Client.prototype.getCourse = function(parameters) {
if (parameters === undefined) {

@@ -503,3 +671,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{sessionId}/playback/token';
var path = '/v1/institutions/{institution_id}/courses/{course_id}';

@@ -511,11 +679,14 @@ var body;

path = path.replace('{sessionId}', parameters['sessionId']);
path = path.replace('{course_id}', parameters['courseId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
path = path.replace('{institution_id}', parameters['institutionId']);
if (parameters['institutionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: institutionId'));
return deferred.promise;
}

@@ -531,3 +702,3 @@

this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -537,10 +708,9 @@ return deferred.promise;

/**
* Join an existing session and get permissions
* Used to login and authenticate proctors
* @method
* @name Client#joinSession
* @param {string} sessionId - Access Key
* @name Client#proctorLogin
* @param {} body -
*
*/
Client.prototype.joinSession = function(parameters) {
Client.prototype.proctorLogin = function(parameters) {
if (parameters === undefined) {

@@ -552,3 +722,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/join';
var path = '/v1/proctors/login';

@@ -560,9 +730,2 @@ var body;

path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {

@@ -585,10 +748,10 @@ body = parameters['body'];

/**
* Get all the incident types
* This endpoint is used to post a new event for a session
* @method
* @name Client#getIncidentTypes
* @param {string} page -
* @param {string} pageSize -
* @name Client#postEvent
* @param {string} sessionId -
* @param {} body -
*
*/
Client.prototype.getIncidentTypes = function(parameters) {
Client.prototype.postEvent = function(parameters) {
if (parameters === undefined) {

@@ -600,3 +763,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/incidents/types';
var path = '/v1/{sessionId}/event';

@@ -608,8 +771,11 @@ var body;

if (parameters['page'] !== undefined) {
queryParameters['page'] = parameters['page'];
path = path.replace('{sessionId}', parameters['sessionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['pageSize'] !== undefined) {
queryParameters['page_size'] = parameters['pageSize'];
if (parameters['body'] !== undefined) {
body = parameters['body'];
}

@@ -625,3 +791,3 @@

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -631,9 +797,9 @@ return deferred.promise;

/**
* List sessions for a given exam
* List students for a given exam
* @method
* @name Client#listSessions
* @name Client#listStudents
* @param {string} examId -
*
*/
Client.prototype.listSessions = function(parameters) {
Client.prototype.listStudents = function(parameters) {
if (parameters === undefined) {

@@ -645,3 +811,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/exams/{exam_id}/sessions';
var path = '/v1/exams/{exam_id}/students';

@@ -673,6 +839,5 @@ var body;

/**
* Get session details for a given exam
* Cancel session for a given exam
* @method
* @name Client#getSession
* @param {string} token -
* @name Client#cancelSession
* @param {string} examId -

@@ -682,3 +847,3 @@ * @param {string} sessionId -

*/
Client.prototype.getSession = function(parameters) {
Client.prototype.cancelSession = function(parameters) {
if (parameters === undefined) {

@@ -690,3 +855,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/exams/{exam_id}/sessions/{session_id}';
var path = '/v1/exams/{exam_id}/sessions/{session_id}/cancel';

@@ -698,11 +863,2 @@ var body;

if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
return deferred.promise;
}
path = path.replace('{exam_id}', parameters['examId']);

@@ -730,3 +886,3 @@

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -736,11 +892,13 @@ return deferred.promise;

/**
* Get exam details
* Sign an agreement
* @method
* @name Client#getExam
* @param {string} courseId -
* @param {string} examId -
* @param {string} enrollmentId -
* @name Client#signAgreements
* @param {string} token -
* @param {string} sessionId -
* @param {string} agreementId -
* @param {string} versionId -
* @param {} body -
*
*/
Client.prototype.getExam = function(parameters) {
Client.prototype.signAgreements = function(parameters) {
if (parameters === undefined) {

@@ -752,3 +910,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/courses/{course_id}/exams/{exam_id}';
var path = '/v1/sessions/{session_id}/agreements/{agreement_id}/versions/{version_id}/sign';

@@ -760,25 +918,36 @@ var body;

path = path.replace('{course_id}', parameters['courseId']);
if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
return deferred.promise;
}
path = path.replace('{exam_id}', parameters['examId']);
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['examId'] === undefined) {
deferred.reject(new Error('Missing required parameter: examId'));
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['enrollmentId'] !== undefined) {
queryParameters['enrollment_id'] = parameters['enrollmentId'];
path = path.replace('{agreement_id}', parameters['agreementId']);
if (parameters['agreementId'] === undefined) {
deferred.reject(new Error('Missing required parameter: agreementId'));
return deferred.promise;
}
if (parameters['enrollmentId'] === undefined) {
deferred.reject(new Error('Missing required parameter: enrollmentId'));
path = path.replace('{version_id}', parameters['versionId']);
if (parameters['versionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: versionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
}
if (parameters.$queryParameters) {

@@ -792,3 +961,3 @@ Object.keys(parameters.$queryParameters)

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -798,8 +967,10 @@ return deferred.promise;

/**
* Will return a full list of all institutions
* Get all the incident types
* @method
* @name Client#listInstitutions
* @name Client#getIncidentTypes
* @param {string} page -
* @param {string} pageSize -
*
*/
Client.prototype.listInstitutions = function(parameters) {
Client.prototype.getIncidentTypes = function(parameters) {
if (parameters === undefined) {

@@ -811,3 +982,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/institutions';
var path = '/v1/incidents/types';

@@ -819,2 +990,10 @@ var body;

if (parameters['page'] !== undefined) {
queryParameters['page'] = parameters['page'];
}
if (parameters['pageSize'] !== undefined) {
queryParameters['page_size'] = parameters['pageSize'];
}
if (parameters.$queryParameters) {

@@ -833,9 +1012,11 @@ Object.keys(parameters.$queryParameters)

/**
* Used to login and authenticate proctors
* List all instructors for a course
* @method
* @name Client#proctorLogin
* @param {} body -
* @name Client#listInstructors
* @param {string} courseId -
* @param {string} page -
* @param {string} pageSize -
*
*/
Client.prototype.proctorLogin = function(parameters) {
Client.prototype.listInstructors = function(parameters) {
if (parameters === undefined) {

@@ -847,3 +1028,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/proctors/login';
var path = '/v1/courses/{course_id}/instructors';

@@ -855,6 +1036,17 @@ var body;

if (parameters['body'] !== undefined) {
body = parameters['body'];
path = path.replace('{course_id}', parameters['courseId']);
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
return deferred.promise;
}
if (parameters['page'] !== undefined) {
queryParameters['page'] = parameters['page'];
}
if (parameters['pageSize'] !== undefined) {
queryParameters['page_size'] = parameters['pageSize'];
}
if (parameters.$queryParameters) {

@@ -868,3 +1060,3 @@ Object.keys(parameters.$queryParameters)

this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -874,10 +1066,9 @@ return deferred.promise;

/**
* Get student details
* Will return return a list of courses for an institution
* @method
* @name Client#getStudent
* @name Client#listCourses
* @param {string} institutionId -
* @param {string} studentId -
*
*/
Client.prototype.getStudent = function(parameters) {
Client.prototype.listCourses = function(parameters) {
if (parameters === undefined) {

@@ -889,3 +1080,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/institutions/{institution_id}/students/{student_id}';
var path = '/v1/institutions/{institution_id}/courses';

@@ -904,9 +1095,2 @@ var body;

path = path.replace('{student_id}', parameters['studentId']);
if (parameters['studentId'] === undefined) {
deferred.reject(new Error('Missing required parameter: studentId'));
return deferred.promise;
}
if (parameters.$queryParameters) {

@@ -925,11 +1109,11 @@ Object.keys(parameters.$queryParameters)

/**
* Will return start and end time for a users media
* Get exam details
* @method
* @name Client#videoSetup
* @param {string} token -
* @param {string} userId -
* @param {} body -
* @name Client#getExam
* @param {string} courseId -
* @param {string} examId -
* @param {string} enrollmentId -
*
*/
Client.prototype.videoSetup = function(parameters) {
Client.prototype.getExam = function(parameters) {
if (parameters === undefined) {

@@ -941,3 +1125,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/{userId}/videoSetup';
var path = '/v1/courses/{course_id}/exams/{exam_id}';

@@ -949,22 +1133,25 @@ var body;

if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
path = path.replace('{course_id}', parameters['courseId']);
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
return deferred.promise;
}
path = path.replace('{userId}', parameters['userId']);
path = path.replace('{exam_id}', parameters['examId']);
if (parameters['userId'] === undefined) {
deferred.reject(new Error('Missing required parameter: userId'));
if (parameters['examId'] === undefined) {
deferred.reject(new Error('Missing required parameter: examId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
if (parameters['enrollmentId'] !== undefined) {
queryParameters['enrollment_id'] = parameters['enrollmentId'];
}
if (parameters['enrollmentId'] === undefined) {
deferred.reject(new Error('Missing required parameter: enrollmentId'));
return deferred.promise;
}
if (parameters.$queryParameters) {

@@ -978,3 +1165,3 @@ Object.keys(parameters.$queryParameters)

this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -984,11 +1171,8 @@ return deferred.promise;

/**
* Get history of current session
* Will return a full list of all institutions
* @method
* @name Client#getAgreementHistory
* @param {string} token -
* @param {string} sessionId -
* @param {string} agreementId -
* @name Client#listInstitutions
*
*/
Client.prototype.getAgreementHistory = function(parameters) {
Client.prototype.listInstitutions = function(parameters) {
if (parameters === undefined) {

@@ -1000,3 +1184,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/agreements/{agreement_id}/history';
var path = '/v1/institutions';

@@ -1008,25 +1192,2 @@ var body;

if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
return deferred.promise;
}
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
path = path.replace('{agreement_id}', parameters['agreementId']);
if (parameters['agreementId'] === undefined) {
deferred.reject(new Error('Missing required parameter: agreementId'));
return deferred.promise;
}
if (parameters.$queryParameters) {

@@ -1045,9 +1206,10 @@ Object.keys(parameters.$queryParameters)

/**
* Will return detailed information about an institution
* Creates an incident for a given session
* @method
* @name Client#getInstitution
* @param {string} institutionId -
* @name Client#createIncident
* @param {string} sessionId -
* @param {} body -
*
*/
Client.prototype.getInstitution = function(parameters) {
Client.prototype.createIncident = function(parameters) {
if (parameters === undefined) {

@@ -1059,3 +1221,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/institutions/{institution_id}';
var path = '/v1/sessions/{session_id}/incidents';

@@ -1067,9 +1229,13 @@ var body;

path = path.replace('{institution_id}', parameters['institutionId']);
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['institutionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: institutionId'));
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
}
if (parameters.$queryParameters) {

@@ -1083,3 +1249,3 @@ Object.keys(parameters.$queryParameters)

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -1089,8 +1255,11 @@ return deferred.promise;

/**
* Used to make sure that the api is current only
* List incidents for a given session
* @method
* @name Client#health
* @name Client#listIncidents
* @param {string} sessionId -
* @param {string} page -
* @param {string} pageSize -
*
*/
Client.prototype.health = function(parameters) {
Client.prototype.listIncidents = function(parameters) {
if (parameters === undefined) {

@@ -1102,3 +1271,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1';
var path = '/v1/sessions/{session_id}/incidents';

@@ -1110,2 +1279,17 @@ var body;

path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['page'] !== undefined) {
queryParameters['page'] = parameters['page'];
}
if (parameters['pageSize'] !== undefined) {
queryParameters['page_size'] = parameters['pageSize'];
}
if (parameters.$queryParameters) {

@@ -1124,9 +1308,12 @@ Object.keys(parameters.$queryParameters)

/**
* This endpoint is used to get an image list for an proctor
* This endpoint is used to get events for a session
* @method
* @name Client#listProctorImages
* @name Client#getEvents
* @param {string} sessionId -
* @param {string} userId -
* @param {string} type -
* @param {number} severity -
*
*/
Client.prototype.listProctorImages = function(parameters) {
Client.prototype.getEvents = function(parameters) {
if (parameters === undefined) {

@@ -1138,3 +1325,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/proctor/{user_id}/images';
var path = '/v1/{sessionId}/events';

@@ -1146,9 +1333,21 @@ var body;

path = path.replace('{user_id}', parameters['userId']);
path = path.replace('{sessionId}', parameters['sessionId']);
if (parameters['userId'] === undefined) {
deferred.reject(new Error('Missing required parameter: userId'));
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['userId'] !== undefined) {
queryParameters['userId'] = parameters['userId'];
}
if (parameters['type'] !== undefined) {
queryParameters['type'] = parameters['type'];
}
if (parameters['severity'] !== undefined) {
queryParameters['severity'] = parameters['severity'];
}
if (parameters.$queryParameters) {

@@ -1167,10 +1366,10 @@ Object.keys(parameters.$queryParameters)

/**
* This endpoint is used to upload headshot for a proctor
* Join an existing session and get permissions
* @method
* @name Client#uploadProctorImage
* @param {string} userId -
* @name Client#joinSession
* @param {string} sessionId - Access Key
* @param {} body -
*
*/
Client.prototype.uploadProctorImage = function(parameters) {
Client.prototype.joinSession = function(parameters) {
if (parameters === undefined) {

@@ -1182,3 +1381,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/proctor/{user_id}/images';
var path = '/v1/sessions/{session_id}/join';

@@ -1190,6 +1389,6 @@ var body;

path = path.replace('{user_id}', parameters['userId']);
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['userId'] === undefined) {
deferred.reject(new Error('Missing required parameter: userId'));
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;

@@ -1215,9 +1414,10 @@ }

/**
* List all exams for a course
* This endpoint is used to get playback tokens for a user
* @method
* @name Client#listExams
* @param {string} courseId -
* @name Client#playbackToken
* @param {string} sessionId -
* @param {} body -
*
*/
Client.prototype.listExams = function(parameters) {
Client.prototype.playbackToken = function(parameters) {
if (parameters === undefined) {

@@ -1229,3 +1429,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/courses/{course_id}/exams';
var path = '/v1/sessions/{sessionId}/playback/token';

@@ -1237,9 +1437,13 @@ var body;

path = path.replace('{course_id}', parameters['courseId']);
path = path.replace('{sessionId}', parameters['sessionId']);
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
}
if (parameters.$queryParameters) {

@@ -1253,3 +1457,3 @@ Object.keys(parameters.$queryParameters)

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -1259,11 +1463,11 @@ return deferred.promise;

/**
* List all instructors for a course
* Will return start and end time for a users media
* @method
* @name Client#listInstructors
* @param {string} courseId -
* @param {string} page -
* @param {string} pageSize -
* @name Client#videoSetup
* @param {string} token -
* @param {string} userId -
* @param {} body -
*
*/
Client.prototype.listInstructors = function(parameters) {
Client.prototype.videoSetup = function(parameters) {
if (parameters === undefined) {

@@ -1275,3 +1479,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/courses/{course_id}/instructors';
var path = '/v1/{userId}/videoSetup';

@@ -1283,15 +1487,20 @@ var body;

path = path.replace('{course_id}', parameters['courseId']);
if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
return deferred.promise;
}
if (parameters['page'] !== undefined) {
queryParameters['page'] = parameters['page'];
path = path.replace('{userId}', parameters['userId']);
if (parameters['userId'] === undefined) {
deferred.reject(new Error('Missing required parameter: userId'));
return deferred.promise;
}
if (parameters['pageSize'] !== undefined) {
queryParameters['page_size'] = parameters['pageSize'];
if (parameters['body'] !== undefined) {
body = parameters['body'];
}

@@ -1307,3 +1516,3 @@

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -1313,10 +1522,8 @@ return deferred.promise;

/**
* Cancel session for a given exam
* Get all corrective_action_types
* @method
* @name Client#cancelSession
* @param {string} examId -
* @param {string} sessionId -
* @name Client#getCorrectiveActionTypes
*
*/
Client.prototype.cancelSession = function(parameters) {
Client.prototype.getCorrectiveActionTypes = function(parameters) {
if (parameters === undefined) {

@@ -1328,3 +1535,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/exams/{exam_id}/sessions/{session_id}/cancel';
var path = '/v1/incidents/corrective_action_types';

@@ -1336,16 +1543,2 @@ var body;

path = path.replace('{exam_id}', parameters['examId']);
if (parameters['examId'] === undefined) {
deferred.reject(new Error('Missing required parameter: examId'));
return deferred.promise;
}
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters.$queryParameters) {

@@ -1359,3 +1552,3 @@ Object.keys(parameters.$queryParameters)

this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -1365,11 +1558,10 @@ return deferred.promise;

/**
* Get agreements to sign
* Gets the zookeeper session history
* @method
* @name Client#getAgreements
* @param {string} token -
* @name Client#getProcesses
* @param {string} sessionId -
* @param {string} locationId -
* @param {string} zookeeperId -
*
*/
Client.prototype.getAgreements = function(parameters) {
Client.prototype.getProcesses = function(parameters) {
if (parameters === undefined) {

@@ -1381,3 +1573,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/agreements/location/{location_id}';
var path = '/v1/sessions/{session_id}/processes';

@@ -1389,11 +1581,2 @@ var body;

if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
return deferred.promise;
}
path = path.replace('{session_id}', parameters['sessionId']);

@@ -1406,6 +1589,8 @@

path = path.replace('{location_id}', parameters['locationId']);
if (parameters['zookeeperId'] !== undefined) {
queryParameters['zookeeper_id'] = parameters['zookeeperId'];
}
if (parameters['locationId'] === undefined) {
deferred.reject(new Error('Missing required parameter: locationId'));
if (parameters['zookeeperId'] === undefined) {
deferred.reject(new Error('Missing required parameter: zookeeperId'));
return deferred.promise;

@@ -1427,9 +1612,10 @@ }

/**
* Will return return a list of courses for an institution
* Updates the session with the current running processes
* @method
* @name Client#listCourses
* @param {string} institutionId -
* @name Client#sessionProcesses
* @param {string} sessionId -
* @param {} body -
*
*/
Client.prototype.listCourses = function(parameters) {
Client.prototype.sessionProcesses = function(parameters) {
if (parameters === undefined) {

@@ -1441,3 +1627,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/institutions/{institution_id}/courses';
var path = '/v1/sessions/{session_id}/processes';

@@ -1449,9 +1635,13 @@ var body;

path = path.replace('{institution_id}', parameters['institutionId']);
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['institutionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: institutionId'));
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
}
if (parameters.$queryParameters) {

@@ -1465,3 +1655,3 @@ Object.keys(parameters.$queryParameters)

this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -1471,10 +1661,8 @@ return deferred.promise;

/**
* Get instructor details
* Used to make sure that the api is current only
* @method
* @name Client#getInstructor
* @param {string} courseId -
* @param {string} instructorId -
* @name Client#health
*
*/
Client.prototype.getInstructor = function(parameters) {
Client.prototype.health = function(parameters) {
if (parameters === undefined) {

@@ -1486,3 +1674,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/courses/{course_id}/instructors/{instructor_id}';
var path = '/v1';

@@ -1494,16 +1682,2 @@ var body;

path = path.replace('{course_id}', parameters['courseId']);
if (parameters['courseId'] === undefined) {
deferred.reject(new Error('Missing required parameter: courseId'));
return deferred.promise;
}
path = path.replace('{instructor_id}', parameters['instructorId']);
if (parameters['instructorId'] === undefined) {
deferred.reject(new Error('Missing required parameter: instructorId'));
return deferred.promise;
}
if (parameters.$queryParameters) {

@@ -1522,11 +1696,11 @@ Object.keys(parameters.$queryParameters)

/**
* This endpoint is used to get an image list for an user
* Get session details for a given exam
* @method
* @name Client#listImages
* @name Client#getSession
* @param {string} token -
* @param {string} examId -
* @param {string} sessionId -
* @param {string} clientId -
* @param {string} type -
*
*/
Client.prototype.listImages = function(parameters) {
Client.prototype.getSession = function(parameters) {
if (parameters === undefined) {

@@ -1538,3 +1712,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/images';
var path = '/v1/exams/{exam_id}/sessions/{session_id}';

@@ -1546,20 +1720,23 @@ var body;

path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
return deferred.promise;
}
if (parameters['clientId'] !== undefined) {
queryParameters['client_id'] = parameters['clientId'];
}
path = path.replace('{exam_id}', parameters['examId']);
if (parameters['clientId'] === undefined) {
deferred.reject(new Error('Missing required parameter: clientId'));
if (parameters['examId'] === undefined) {
deferred.reject(new Error('Missing required parameter: examId'));
return deferred.promise;
}
if (parameters['type'] !== undefined) {
queryParameters['type'] = parameters['type'];
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}

@@ -1635,10 +1812,11 @@

/**
* Gets the zookeeper session history
* This endpoint is used to get an image list for an user
* @method
* @name Client#getProcesses
* @name Client#listImages
* @param {string} sessionId -
* @param {string} zookeeperId -
* @param {string} clientId -
* @param {string} type -
*
*/
Client.prototype.getProcesses = function(parameters) {
Client.prototype.listImages = function(parameters) {
if (parameters === undefined) {

@@ -1650,3 +1828,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/processes';
var path = '/v1/sessions/{session_id}/images';

@@ -1665,11 +1843,15 @@ var body;

if (parameters['zookeeperId'] !== undefined) {
queryParameters['zookeeper_id'] = parameters['zookeeperId'];
if (parameters['clientId'] !== undefined) {
queryParameters['client_id'] = parameters['clientId'];
}
if (parameters['zookeeperId'] === undefined) {
deferred.reject(new Error('Missing required parameter: zookeeperId'));
if (parameters['clientId'] === undefined) {
deferred.reject(new Error('Missing required parameter: clientId'));
return deferred.promise;
}
if (parameters['type'] !== undefined) {
queryParameters['type'] = parameters['type'];
}
if (parameters.$queryParameters) {

@@ -1688,10 +1870,10 @@ Object.keys(parameters.$queryParameters)

/**
* Updates the session with the current running processes
* Get student details
* @method
* @name Client#sessionProcesses
* @param {string} sessionId -
* @param {} body -
* @name Client#getStudent
* @param {string} institutionId -
* @param {string} studentId -
*
*/
Client.prototype.sessionProcesses = function(parameters) {
Client.prototype.getStudent = function(parameters) {
if (parameters === undefined) {

@@ -1703,3 +1885,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/processes';
var path = '/v1/institutions/{institution_id}/students/{student_id}';

@@ -1711,11 +1893,14 @@ var body;

path = path.replace('{session_id}', parameters['sessionId']);
path = path.replace('{institution_id}', parameters['institutionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
if (parameters['institutionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: institutionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
path = path.replace('{student_id}', parameters['studentId']);
if (parameters['studentId'] === undefined) {
deferred.reject(new Error('Missing required parameter: studentId'));
return deferred.promise;
}

@@ -1731,3 +1916,3 @@

this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -1737,11 +1922,11 @@ return deferred.promise;

/**
* Will return an array of videos that contained signed urls and other metadata
* Get history of current session
* @method
* @name Client#getVideos
* @name Client#getAgreementHistory
* @param {string} token -
* @param {string} userId -
* @param {} body -
* @param {string} sessionId -
* @param {string} agreementId -
*
*/
Client.prototype.getVideos = function(parameters) {
Client.prototype.getAgreementHistory = function(parameters) {
if (parameters === undefined) {

@@ -1753,3 +1938,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/{userId}/videos';
var path = '/v1/sessions/{session_id}/agreements/{agreement_id}/history';

@@ -1770,11 +1955,14 @@ var body;

path = path.replace('{userId}', parameters['userId']);
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['userId'] === undefined) {
deferred.reject(new Error('Missing required parameter: userId'));
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
path = path.replace('{agreement_id}', parameters['agreementId']);
if (parameters['agreementId'] === undefined) {
deferred.reject(new Error('Missing required parameter: agreementId'));
return deferred.promise;
}

@@ -1790,3 +1978,3 @@

this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -1796,9 +1984,11 @@ return deferred.promise;

/**
* List students for a given exam
* Get agreements to sign
* @method
* @name Client#listStudents
* @param {string} examId -
* @name Client#getAgreements
* @param {string} token -
* @param {string} sessionId -
* @param {string} locationId -
*
*/
Client.prototype.listStudents = function(parameters) {
Client.prototype.getAgreements = function(parameters) {
if (parameters === undefined) {

@@ -1810,3 +2000,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/exams/{exam_id}/students';
var path = '/v1/sessions/{session_id}/agreements/location/{location_id}';

@@ -1818,9 +2008,25 @@ var body;

path = path.replace('{exam_id}', parameters['examId']);
if (parameters['token'] !== undefined) {
headers['token'] = parameters['token'];
}
if (parameters['examId'] === undefined) {
deferred.reject(new Error('Missing required parameter: examId'));
if (parameters['token'] === undefined) {
deferred.reject(new Error('Missing required parameter: token'));
return deferred.promise;
}
path = path.replace('{session_id}', parameters['sessionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
return deferred.promise;
}
path = path.replace('{location_id}', parameters['locationId']);
if (parameters['locationId'] === undefined) {
deferred.reject(new Error('Missing required parameter: locationId'));
return deferred.promise;
}
if (parameters.$queryParameters) {

@@ -1839,10 +2045,9 @@ Object.keys(parameters.$queryParameters)

/**
* Start a new session and create permissions
* Will return detailed information about an institution
* @method
* @name Client#startSession
* @param {string} sessionId - Access Key
* @param {} body -
* @name Client#getInstitution
* @param {string} institutionId -
*
*/
Client.prototype.startSession = function(parameters) {
Client.prototype.getInstitution = function(parameters) {
if (parameters === undefined) {

@@ -1854,3 +2059,3 @@ parameters = {};

var domain = this.domain;
var path = '/v1/sessions/{session_id}/start';
var path = '/v1/institutions/{institution_id}';

@@ -1862,13 +2067,9 @@ var body;

path = path.replace('{session_id}', parameters['sessionId']);
path = path.replace('{institution_id}', parameters['institutionId']);
if (parameters['sessionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: sessionId'));
if (parameters['institutionId'] === undefined) {
deferred.reject(new Error('Missing required parameter: institutionId'));
return deferred.promise;
}
if (parameters['body'] !== undefined) {
body = parameters['body'];
}
if (parameters.$queryParameters) {

@@ -1882,3 +2083,3 @@ Object.keys(parameters.$queryParameters)

this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);

@@ -1885,0 +2086,0 @@ return deferred.promise;

@@ -1,1 +0,1 @@

{"name":"@smarterservices/sp-public-client","version":"0.1.14","description":"the middle layer to microservice architecture for SP that handles tasks like proxying to backend api's,formatting responces,checking permissions","main":"index.js","dependencies":{"q":"latest","request":"latest"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"jordan piepkow","license":null}
{"name":"@smarterservices/sp-public-client","version":"0.1.15","description":"the middle layer to microservice architecture for SP that handles tasks like proxying to backend api's,formatting responces,checking permissions","main":"index.js","dependencies":{"q":"latest","request":"latest"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"jordan piepkow","license":null}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc