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.
package/dist/comprodls-sdk.js
CHANGED
|
@@ -8673,7 +8673,10 @@ function createSchedule(options) {
|
|
|
8673
8673
|
options.body.scheduleid && options.body.actorid && options.body.category && options.body.schedule_time) {
|
|
8674
8674
|
// Construct API url
|
|
8675
8675
|
var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.schedules;
|
|
8676
|
-
url = helpers.api.constructAPIUrl(url, {
|
|
8676
|
+
url = helpers.api.constructAPIUrl(url, {
|
|
8677
|
+
accountId: options.accountid,
|
|
8678
|
+
context: encodeURIComponent(options.context)
|
|
8679
|
+
});
|
|
8677
8680
|
|
|
8678
8681
|
// Setup request with URL and Params
|
|
8679
8682
|
var requestAPI = request.post(url)
|
|
@@ -8714,7 +8717,10 @@ function getSchedule(options) {
|
|
|
8714
8717
|
if (options && options.context && options.accountid) {
|
|
8715
8718
|
// Construct API url
|
|
8716
8719
|
var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.schedules;
|
|
8717
|
-
url = helpers.api.constructAPIUrl(url, {
|
|
8720
|
+
url = helpers.api.constructAPIUrl(url, {
|
|
8721
|
+
accountId: options.accountid,
|
|
8722
|
+
context: encodeURIComponent(options.context)
|
|
8723
|
+
});
|
|
8718
8724
|
|
|
8719
8725
|
var params = {};
|
|
8720
8726
|
if(options.cursor) { params.cursor = options.cursor; }
|
|
@@ -8756,7 +8762,11 @@ function updateSchedule(options) {
|
|
|
8756
8762
|
(Object.keys(options.body).length > 0) && options.body.actorid && options.body.category) {
|
|
8757
8763
|
// Construct API url
|
|
8758
8764
|
var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.particularSchedule;
|
|
8759
|
-
url = helpers.api.constructAPIUrl(url, {
|
|
8765
|
+
url = helpers.api.constructAPIUrl(url, {
|
|
8766
|
+
accountId: options.accountid,
|
|
8767
|
+
context: encodeURIComponent(options.context),
|
|
8768
|
+
scheduleId: encodeURIComponent(options.scheduleid)
|
|
8769
|
+
});
|
|
8760
8770
|
|
|
8761
8771
|
// Setup request with URL and Params
|
|
8762
8772
|
var requestAPI = request.put(url)
|
|
@@ -8797,7 +8807,11 @@ function deleteSchedule(options) {
|
|
|
8797
8807
|
if (options && options.context && options.accountid && options.scheduleid && options.body) {
|
|
8798
8808
|
// Construct API url
|
|
8799
8809
|
var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.particularSchedule;
|
|
8800
|
-
url = helpers.api.constructAPIUrl(url, {
|
|
8810
|
+
url = helpers.api.constructAPIUrl(url, {
|
|
8811
|
+
accountId: options.accountid,
|
|
8812
|
+
context: encodeURIComponent(options.context),
|
|
8813
|
+
scheduleId: encodeURIComponent(options.scheduleid)
|
|
8814
|
+
});
|
|
8801
8815
|
|
|
8802
8816
|
// Setup request with URL and Params
|
|
8803
8817
|
var requestAPI = request.delete(url)
|