comprodls-sdk 2.18.0 → 2.19.0
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.
|
@@ -1314,6 +1314,7 @@ function enrollUsertoClass(options) {
|
|
|
1314
1314
|
|
|
1315
1315
|
//options = {
|
|
1316
1316
|
// classid: '', //Class Id
|
|
1317
|
+
// classrole: ''
|
|
1317
1318
|
//};
|
|
1318
1319
|
function enrollSelftoClass(options) {
|
|
1319
1320
|
var self = this;
|
|
@@ -1334,8 +1335,13 @@ function enrollSelftoClass(options) {
|
|
|
1334
1335
|
classId: options.classid
|
|
1335
1336
|
});
|
|
1336
1337
|
|
|
1338
|
+
var params = { classrole: options.classrole };
|
|
1337
1339
|
//Setup request with URL and Params
|
|
1338
|
-
var requestAPI = request.post(url)
|
|
1340
|
+
var requestAPI = request.post(url)
|
|
1341
|
+
.set('Content-Type', 'application/json')
|
|
1342
|
+
.set('Accept', 'application/json')
|
|
1343
|
+
.send(params);
|
|
1344
|
+
|
|
1339
1345
|
if(self.traceid) { requestAPI.set('X-Amzn-Trace-Id', self.traceid); }
|
|
1340
1346
|
|
|
1341
1347
|
//Setup token in Authorization header
|
|
@@ -51,9 +51,18 @@ function invitations() {
|
|
|
51
51
|
context: 'string', // required
|
|
52
52
|
created: 'string', // required
|
|
53
53
|
space_title: 'string',
|
|
54
|
-
class_enrollment: {
|
|
54
|
+
class_enrollment: {
|
|
55
|
+
classid: 'string', // required. Correlated with context
|
|
56
|
+
class_role: 'string', // optional
|
|
57
|
+
inviter_email: 'string' // optional
|
|
58
|
+
},
|
|
55
59
|
invitation_data: [
|
|
56
60
|
{
|
|
61
|
+
class_enrollment : { // optional, will override the outer context
|
|
62
|
+
classid: 'string' // required. Correlated with context
|
|
63
|
+
class_role: 'string', // optional
|
|
64
|
+
inviter_email: 'string' // optional
|
|
65
|
+
},
|
|
57
66
|
email: 'string', // required
|
|
58
67
|
dls_account_status: 'string',
|
|
59
68
|
ext_account_status: 'string',
|