comprodls-sdk 2.121.1-security → 2.123.1-security
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,7 +325,10 @@ 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, {
|
|
328
|
+
url = helpers.api.constructAPIUrl(url, {
|
|
329
|
+
accountId: options.accountid,
|
|
330
|
+
context: encodeURIComponent(options.context)
|
|
331
|
+
});
|
|
329
332
|
|
|
330
333
|
// Setup request with URL and Params
|
|
331
334
|
var requestAPI = request.post(url)
|
|
@@ -366,7 +369,10 @@ function getSchedule(options) {
|
|
|
366
369
|
if (options && options.context && options.accountid) {
|
|
367
370
|
// Construct API url
|
|
368
371
|
var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.schedules;
|
|
369
|
-
url = helpers.api.constructAPIUrl(url, {
|
|
372
|
+
url = helpers.api.constructAPIUrl(url, {
|
|
373
|
+
accountId: options.accountid,
|
|
374
|
+
context: encodeURIComponent(options.context)
|
|
375
|
+
});
|
|
370
376
|
|
|
371
377
|
var params = {};
|
|
372
378
|
if(options.cursor) { params.cursor = options.cursor; }
|
|
@@ -408,7 +414,11 @@ function updateSchedule(options) {
|
|
|
408
414
|
(Object.keys(options.body).length > 0) && options.body.actorid && options.body.category) {
|
|
409
415
|
// Construct API url
|
|
410
416
|
var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.particularSchedule;
|
|
411
|
-
url = helpers.api.constructAPIUrl(url, {
|
|
417
|
+
url = helpers.api.constructAPIUrl(url, {
|
|
418
|
+
accountId: options.accountid,
|
|
419
|
+
context: encodeURIComponent(options.context),
|
|
420
|
+
scheduleId: encodeURIComponent(options.scheduleid)
|
|
421
|
+
});
|
|
412
422
|
|
|
413
423
|
// Setup request with URL and Params
|
|
414
424
|
var requestAPI = request.put(url)
|
|
@@ -449,7 +459,11 @@ function deleteSchedule(options) {
|
|
|
449
459
|
if (options && options.context && options.accountid && options.scheduleid && options.body) {
|
|
450
460
|
// Construct API url
|
|
451
461
|
var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.particularSchedule;
|
|
452
|
-
url = helpers.api.constructAPIUrl(url, {
|
|
462
|
+
url = helpers.api.constructAPIUrl(url, {
|
|
463
|
+
accountId: options.accountid,
|
|
464
|
+
context: encodeURIComponent(options.context),
|
|
465
|
+
scheduleId: encodeURIComponent(options.scheduleid)
|
|
466
|
+
});
|
|
453
467
|
|
|
454
468
|
// Setup request with URL and Params
|
|
455
469
|
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.
|
|
4
|
+
"version": "2.123.1-security",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Compro Technologies Private Limited",
|
|
7
7
|
"url": "http://www.comprotechnologies.com/"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"agentkeepalive": "4.2.0",
|
|
16
|
-
"basic-ftp": "
|
|
16
|
+
"basic-ftp": "6.2.1",
|
|
17
17
|
"form-data": "^2.5.6",
|
|
18
18
|
"ip-address": "^10.3.1",
|
|
19
19
|
"pubnub": "7.5.0",
|