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.
package/dist/comprodls-sdk.js
CHANGED
|
@@ -5173,6 +5173,7 @@ function enrollUsertoClass(options) {
|
|
|
5173
5173
|
|
|
5174
5174
|
//options = {
|
|
5175
5175
|
// classid: '', //Class Id
|
|
5176
|
+
// classrole: ''
|
|
5176
5177
|
//};
|
|
5177
5178
|
function enrollSelftoClass(options) {
|
|
5178
5179
|
var self = this;
|
|
@@ -5193,8 +5194,13 @@ function enrollSelftoClass(options) {
|
|
|
5193
5194
|
classId: options.classid
|
|
5194
5195
|
});
|
|
5195
5196
|
|
|
5197
|
+
var params = { classrole: options.classrole };
|
|
5196
5198
|
//Setup request with URL and Params
|
|
5197
|
-
var requestAPI = request.post(url)
|
|
5199
|
+
var requestAPI = request.post(url)
|
|
5200
|
+
.set('Content-Type', 'application/json')
|
|
5201
|
+
.set('Accept', 'application/json')
|
|
5202
|
+
.send(params);
|
|
5203
|
+
|
|
5198
5204
|
if(self.traceid) { requestAPI.set('X-Amzn-Trace-Id', self.traceid); }
|
|
5199
5205
|
|
|
5200
5206
|
//Setup token in Authorization header
|
|
@@ -7469,9 +7475,18 @@ function invitations() {
|
|
|
7469
7475
|
context: 'string', // required
|
|
7470
7476
|
created: 'string', // required
|
|
7471
7477
|
space_title: 'string',
|
|
7472
|
-
class_enrollment: {
|
|
7478
|
+
class_enrollment: {
|
|
7479
|
+
classid: 'string', // required. Correlated with context
|
|
7480
|
+
class_role: 'string', // optional
|
|
7481
|
+
inviter_email: 'string' // optional
|
|
7482
|
+
},
|
|
7473
7483
|
invitation_data: [
|
|
7474
7484
|
{
|
|
7485
|
+
class_enrollment : { // optional, will override the outer context
|
|
7486
|
+
classid: 'string' // required. Correlated with context
|
|
7487
|
+
class_role: 'string', // optional
|
|
7488
|
+
inviter_email: 'string' // optional
|
|
7489
|
+
},
|
|
7475
7490
|
email: 'string', // required
|
|
7476
7491
|
dls_account_status: 'string',
|
|
7477
7492
|
ext_account_status: 'string',
|