comprodls-sdk 2.47.0 → 2.48.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.
@@ -3564,7 +3564,8 @@ function getMyAssignedPathsOfClass(options) {
3564
3564
  /* options = {
3565
3565
  "classid": "string", // required
3566
3566
  "userid" : "string", // required
3567
- "assignedPathId" : "string", // required
3567
+ "assignedPathId" : "string",
3568
+ "ext_assignedpathid": "string",
3568
3569
  "progress" : "true/false",
3569
3570
  "group" : "true/false"
3570
3571
  };
@@ -3576,7 +3577,7 @@ function getMyParticularAssignedPathOfClass(options) {
3576
3577
  var err = helpers.validations.isAuthenticated(self.orgId, self.token);
3577
3578
  if(err) { dfd.reject(err); }
3578
3579
  else {
3579
- if(options && options.classid && options.userid && options.assignedPathId ) {
3580
+ if(options && options.classid && options.userid ) {
3580
3581
 
3581
3582
  // Passed all validations, Contruct API url
3582
3583
  var url = self.config.DEFAULT_HOSTS.ANALYTICS + self.config.ANALYTICS_API_URLS.getMyAssignedPathsOfClass;
@@ -3588,6 +3589,8 @@ function getMyParticularAssignedPathOfClass(options) {
3588
3589
 
3589
3590
  if(options.progress) { queryParams.progress = options.progress; }
3590
3591
  if(options.group) { queryParams.group = options.group; }
3592
+ if(options.assignedpathid) { queryParams.assignedpathid = options.assignedpathid; }
3593
+ if(options.ext_assignedpathid) {queryParams.ext_assignedpathid = options.ext_assignedpathid;}
3591
3594
 
3592
3595
  // Setup request with URL and Params
3593
3596
  var requestAPI = request.get(url).query(queryParams);
@@ -3607,7 +3610,7 @@ function getMyParticularAssignedPathOfClass(options) {
3607
3610
  }
3608
3611
  else {
3609
3612
  err = {};
3610
- err.message = err.description = 'Mandatory params - classid, userid, assignedPathId not found in ' +
3613
+ err.message = err.description = 'Mandatory params - classid, userid not found in ' +
3611
3614
  'request options.';
3612
3615
  err = new DLSError(helpers.errors.ERROR_TYPES.SDK_ERROR, err);
3613
3616
  dfd.reject(err);