backendless 7.3.0 → 7.3.1

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/backendless.d.ts CHANGED
@@ -7,9 +7,11 @@ declare module Backendless {
7
7
 
8
8
  let debugMode: boolean;
9
9
  let serverURL: string;
10
+ let automationServerURL: string;
10
11
  let appId: string;
11
12
  let apiKey: string;
12
13
  let appPath: string;
14
+ let automationPath: string;
13
15
  let domain: string;
14
16
  let apiURI: string;
15
17
  let XMLHttpRequest: any;
@@ -35,6 +37,7 @@ declare module Backendless {
35
37
  apiKey?: string;
36
38
  standalone?: boolean;
37
39
  serverURL?: string;
40
+ automationServerURL?: string;
38
41
  domain?: string;
39
42
  debugMode?: boolean;
40
43
  XMLHttpRequest?: XMLHttpRequest;
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ********************************************************************************************************************
3
- * Backendless SDK for JavaScript. Version: 7.3.0
3
+ * Backendless SDK for JavaScript. Version: 7.3.1
4
4
  *
5
5
  * Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
@@ -6481,6 +6481,7 @@ var DEFAULT_PROPS = {
6481
6481
  appId: null,
6482
6482
  apiKey: null,
6483
6483
  serverURL: 'https://api.backendless.com',
6484
+ automationServerURL: null,
6484
6485
  domain: null,
6485
6486
  apiURI: '/api',
6486
6487
  debugMode: false,
@@ -6695,8 +6696,18 @@ var Backendless = /*#__PURE__*/function () {
6695
6696
  get: function get() {
6696
6697
  return this.__serverURL;
6697
6698
  },
6698
- set: function set(serverURL) {
6699
- this.__serverURL = serverURL;
6699
+ set: function set(url) {
6700
+ this.__serverURL = url;
6701
+ }
6702
+
6703
+ ///--------automationServerURL-------///
6704
+ }, {
6705
+ key: "automationServerURL",
6706
+ get: function get() {
6707
+ return this.__automationServerURL;
6708
+ },
6709
+ set: function set(url) {
6710
+ this.__automationServerURL = url;
6700
6711
  }
6701
6712
 
6702
6713
  ///--------domain-------///
@@ -6731,6 +6742,17 @@ var Backendless = /*#__PURE__*/function () {
6731
6742
  set: function set(appPath) {
6732
6743
  throw new Error("Setting '".concat(appPath, "' value to Backendless.appPath directly is not possible, ") + 'instead you must use Backendless.initApp(APP_ID, API_KEY) for setup the value');
6733
6744
  }
6745
+ }, {
6746
+ key: "automationPath",
6747
+ get: function get() {
6748
+ if (!this.automationServerURL) {
6749
+ return this.appPath;
6750
+ }
6751
+ return [this.automationServerURL, this.appId, this.apiKey].join('/');
6752
+ },
6753
+ set: function set(automationPath) {
6754
+ throw new Error("Setting '".concat(automationPath, "' value to Backendless.automationPath directly is not possible"));
6755
+ }
6734
6756
 
6735
6757
  ///--------debugMode-------///
6736
6758
  }, {
@@ -10304,7 +10326,7 @@ var Urls = /*#__PURE__*/function () {
10304
10326
  }, {
10305
10327
  key: "automation",
10306
10328
  value: function automation() {
10307
- return "".concat(this.root(), "/automation");
10329
+ return "".concat(this.app.automationPath, "/automation");
10308
10330
  }
10309
10331
  }, {
10310
10332
  key: "automationFlow",