comprodls-sdk 2.123.1-security → 2.125.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.
@@ -325,10 +325,7 @@ function createSchedule(options) {
325
325
  options.body.scheduleid && options.body.actorid && options.body.category && options.body.schedule_time) {
326
326
  // Construct API url
327
327
  var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.schedules;
328
- url = helpers.api.constructAPIUrl(url, {
329
- accountId: options.accountid,
330
- context: encodeURIComponent(options.context)
331
- });
328
+ url = helpers.api.constructAPIUrl(url, { accountId: options.accountid, context: options.context });
332
329
 
333
330
  // Setup request with URL and Params
334
331
  var requestAPI = request.post(url)
@@ -369,10 +366,7 @@ function getSchedule(options) {
369
366
  if (options && options.context && options.accountid) {
370
367
  // Construct API url
371
368
  var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.schedules;
372
- url = helpers.api.constructAPIUrl(url, {
373
- accountId: options.accountid,
374
- context: encodeURIComponent(options.context)
375
- });
369
+ url = helpers.api.constructAPIUrl(url, { accountId: options.accountid, context: options.context });
376
370
 
377
371
  var params = {};
378
372
  if(options.cursor) { params.cursor = options.cursor; }
@@ -414,11 +408,7 @@ function updateSchedule(options) {
414
408
  (Object.keys(options.body).length > 0) && options.body.actorid && options.body.category) {
415
409
  // Construct API url
416
410
  var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.particularSchedule;
417
- url = helpers.api.constructAPIUrl(url, {
418
- accountId: options.accountid,
419
- context: encodeURIComponent(options.context),
420
- scheduleId: encodeURIComponent(options.scheduleid)
421
- });
411
+ url = helpers.api.constructAPIUrl(url, { accountId: options.accountid, context: options.context, scheduleId: options.scheduleid });
422
412
 
423
413
  // Setup request with URL and Params
424
414
  var requestAPI = request.put(url)
@@ -459,11 +449,7 @@ function deleteSchedule(options) {
459
449
  if (options && options.context && options.accountid && options.scheduleid && options.body) {
460
450
  // Construct API url
461
451
  var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.particularSchedule;
462
- url = helpers.api.constructAPIUrl(url, {
463
- accountId: options.accountid,
464
- context: encodeURIComponent(options.context),
465
- scheduleId: encodeURIComponent(options.scheduleid)
466
- });
452
+ url = helpers.api.constructAPIUrl(url, { accountId: options.accountid, context: options.context, scheduleId: options.scheduleid });
467
453
 
468
454
  // Setup request with URL and Params
469
455
  var requestAPI = request.delete(url)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "comprodls-sdk",
3
3
  "description": "comproDLS SDK for JavaScript",
4
- "version": "2.123.1-security",
4
+ "version": "2.125.0",
5
5
  "author": {
6
6
  "name": "Compro Technologies Private Limited",
7
7
  "url": "http://www.comprotechnologies.com/"