comprodls-sdk 2.57.0 → 2.58.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.
@@ -193,6 +193,9 @@ exports.REALM_HOSTS = {
193
193
  ANALYTICS: 'http://internal-dls-global-prod1-1755536919.us-west-2.elb.amazonaws.com/lb-analytics',
194
194
  INTEGRATION: 'http://internal-dls-global-prod1-1755536919.us-west-2.elb.amazonaws.com/lb-integrations',
195
195
  DRIVE: 'http://internal-dls-global-prod1-1755536919.us-west-2.elb.amazonaws.com/lb-drive'
196
+ },
197
+ DEVELOPMENT: {
198
+ ANALYTICS: 'http://localhost:4000'
196
199
  }
197
200
  },
198
201
  ASGARD: {
@@ -3428,7 +3431,9 @@ function getQuestionProgressByLearningObjective(questionsArray) {
3428
3431
  "classid": "string", // required
3429
3432
  "status_active": <boolean>,
3430
3433
  "status_not_started": <boolean>,
3431
- "status_expired": <boolean>
3434
+ "status_expired": <boolean>,
3435
+ "limit": integer, // Number of entities to be fetched
3436
+ "cursor": "string" // cursor to get next set of assignments
3432
3437
  };
3433
3438
  */
3434
3439
  function getAllAssignedPathsOfClass(options) {
@@ -3448,7 +3453,9 @@ function getAllAssignedPathsOfClass(options) {
3448
3453
  classid: options.classid,
3449
3454
  status_not_started: options.status_not_started,
3450
3455
  status_active: options.status_active,
3451
- status_expired: options.status_expired
3456
+ status_expired: options.status_expired,
3457
+ limit: options.limit,
3458
+ cursor: options.cursor
3452
3459
  };
3453
3460
 
3454
3461
  // Setup request with URL and Params
@@ -3460,7 +3467,9 @@ function getAllAssignedPathsOfClass(options) {
3460
3467
  // setting up traceid
3461
3468
  if(self.traceid) { requestAPI.set('X-Amzn-Trace-Id', self.traceid); }
3462
3469
 
3463
- requestAPI.end(function (error, response) {
3470
+ requestAPI
3471
+ .agent(keepaliveAgent)
3472
+ .end(function (error, response) {
3464
3473
  if(error) {
3465
3474
  err = new DLSError(helpers.errors.ERROR_TYPES.API_ERROR, error);
3466
3475
  dfd.reject(err);
@@ -3537,7 +3546,9 @@ function getAssignedPathAnalytics(options) {
3537
3546
  "status_not_started": <boolean>,
3538
3547
  "status_expired": <boolean>,
3539
3548
  "progress" : "true/false",
3540
- "group" : "true/false"
3549
+ "group" : "true/false",
3550
+ "limit": integer, // Number of entities to be fetched
3551
+ "cursor": "string" // cursor to get next set of assignments
3541
3552
  };
3542
3553
  */
3543
3554
  function getMyAssignedPathsOfClass(options) {
@@ -3559,6 +3570,8 @@ function getMyAssignedPathsOfClass(options) {
3559
3570
  if(options.status_not_started) { queryParams.status_not_started = options.status_not_started; }
3560
3571
  if(options.status_active) { queryParams.status_active = options.status_active; }
3561
3572
  if(options.status_expired) { queryParams.status_expired = options.status_expired; }
3573
+ if(options.limit) { queryParams.limit = options.limit; }
3574
+ if(options.cursor) { queryParams.cursor = options.cursor; }
3562
3575
 
3563
3576
  // Setup request with URL and Params
3564
3577
  var requestAPI = request.get(url).query(queryParams);
@@ -3568,7 +3581,9 @@ function getMyAssignedPathsOfClass(options) {
3568
3581
  // setting up traceid
3569
3582
  if(self.traceid) { requestAPI.set('X-Amzn-Trace-Id', self.traceid); }
3570
3583
 
3571
- requestAPI.end(function (error, response) {
3584
+ requestAPI
3585
+ .agent(keepaliveAgent)
3586
+ .end(function (error, response) {
3572
3587
  if(error) {
3573
3588
  err = new DLSError(helpers.errors.ERROR_TYPES.API_ERROR, error);
3574
3589
  dfd.reject(err);