comprodls-sdk 2.41.3 → 2.42.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/comprodls-sdk.js +4096 -4229
- package/dist/comprodls-sdk.min.js +22 -22
- package/lib/services/auth/index.js +33 -5
- package/package.json +1 -1
|
@@ -2009,8 +2009,28 @@ function updateClass(options) {
|
|
|
2009
2009
|
"analytics_score_aggregation_type": true,
|
|
2010
2010
|
"ext_data": true,
|
|
2011
2011
|
"advanced": {
|
|
2012
|
-
"students": [
|
|
2013
|
-
|
|
2012
|
+
"students": [
|
|
2013
|
+
{
|
|
2014
|
+
"ext_user_id": "string",
|
|
2015
|
+
"invite-students": <boolean>,
|
|
2016
|
+
"first_name": "string",
|
|
2017
|
+
"last_name": "string",
|
|
2018
|
+
"email": "string",
|
|
2019
|
+
"dls_org_status": "string",
|
|
2020
|
+
"ext_account_status": "string"
|
|
2021
|
+
}
|
|
2022
|
+
],
|
|
2023
|
+
"teachers": [
|
|
2024
|
+
{
|
|
2025
|
+
"ext_user_id": "string",
|
|
2026
|
+
"invite-teachers": <boolean>,
|
|
2027
|
+
"first_name": "string",
|
|
2028
|
+
"last_name": "string",
|
|
2029
|
+
"email": "string",
|
|
2030
|
+
"dls_org_status": "string",
|
|
2031
|
+
"ext_account_status": "string"
|
|
2032
|
+
}
|
|
2033
|
+
]
|
|
2014
2034
|
"groups": [ { "groupid": "string" } ],
|
|
2015
2035
|
"assigned_paths": [
|
|
2016
2036
|
{
|
|
@@ -2147,7 +2167,7 @@ function createAssignedPath(options) {
|
|
|
2147
2167
|
if(err) { dfd.reject(err); }
|
|
2148
2168
|
else {
|
|
2149
2169
|
if(options && options.classid && options.data && options.data.title &&
|
|
2150
|
-
|
|
2170
|
+
options.data.items && options.data.items.length > 0) {
|
|
2151
2171
|
|
|
2152
2172
|
// Passed all validations, Contruct API url
|
|
2153
2173
|
var url = self.config.DEFAULT_HOSTS.AUTH + self.config.AUTH_API_URLS.createAssignedPath;
|
|
@@ -2173,7 +2193,7 @@ function createAssignedPath(options) {
|
|
|
2173
2193
|
}
|
|
2174
2194
|
else {
|
|
2175
2195
|
err = {};
|
|
2176
|
-
err.message = err.description = 'Mandatory params - title or classid or
|
|
2196
|
+
err.message = err.description = 'Mandatory params - title or classid or items ' +
|
|
2177
2197
|
'not found in request options.';
|
|
2178
2198
|
err = new DLSError(helpers.errors.ERROR_TYPES.SDK_ERROR, err);
|
|
2179
2199
|
dfd.reject(err);
|
|
@@ -3256,7 +3276,15 @@ function getParticularGradebookMetaOfAClass(options) {
|
|
|
3256
3276
|
error = new DLSError(helpers.errors.ERROR_TYPES.API_ERROR, error);
|
|
3257
3277
|
deferred.reject(error);
|
|
3258
3278
|
} else {
|
|
3259
|
-
|
|
3279
|
+
if (response.body.entities) {
|
|
3280
|
+
deferred.resolve(response.body.entities[0]);
|
|
3281
|
+
} else {
|
|
3282
|
+
/**
|
|
3283
|
+
* An empty response is sent when the requested gradebook doesn't exist in the class.
|
|
3284
|
+
* In this case, the API sends an 204 (No-Content) response.
|
|
3285
|
+
*/
|
|
3286
|
+
deferred.resolve();
|
|
3287
|
+
}
|
|
3260
3288
|
}
|
|
3261
3289
|
});
|
|
3262
3290
|
} else {
|