@resconet/jsbridge 17.1.9 → 17.2.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resconet/jsbridge",
3
- "version": "17.1.9",
3
+ "version": "17.2.0-beta.1",
4
4
  "main": "./src/JSBridge.js",
5
5
  "types": "./src/JSBridge.d.ts",
6
6
  "description": "Install npm JSBridge module",
package/src/JSBridge.d.ts CHANGED
@@ -70,6 +70,16 @@ declare namespace MobileCRM {
70
70
  public static requestObject(callback: (config: Configuration) => void, erroCallback?: (error: string) => void, scope?: any);
71
71
  }
72
72
 
73
+ class GlobalConstants {
74
+ /**Gets the JSON object representing the GlobalConstants variables. */
75
+ public static getAllAsync(): Promise<Object>;
76
+ /**
77
+ *Gets the constant associated with specified key in the GlobalConstants variables.
78
+ * @param key The key of the constant to get.
79
+ */
80
+ public static getAsync(key: String): Promise<Object>;
81
+ }
82
+
73
83
  class Settings {
74
84
  /**Gets the absolute URL (including the CrmOrganization).*/
75
85
  absoluteUrl: string;
package/src/JSBridge.js CHANGED
@@ -219,6 +219,9 @@
219
219
  /// <field name="settings" type="MobileCRM._Settings">Gets the application settings.</field>
220
220
  /// <field name="storageDirectory" type="String">Gets the root folder of the application storage.</field>
221
221
  },
222
+ GlobalConstants: function () {
223
+ /// <summary>Provides access to the global constants.</summary>
224
+ },
222
225
  CultureInfo: function () {
223
226
  /// <summary>[v10.2] Provides information about current device culture. The information includes the names for the culture, the writing system, the calendar used, and formatting for dates.</summary>
224
227
  /// <field name="name" type="String">Gets the culture name in the format languageCode/region (e.g. &quot;en-US&quot;). languageCode is a lowercase two-letter code derived from ISO 639-1. regioncode is derived from ISO 3166 and usually consists of two uppercase letters.</field>
@@ -1680,6 +1683,18 @@
1680
1683
  scope
1681
1684
  );
1682
1685
  };
1686
+ //MobileCRM.GlobalConstants
1687
+ MobileCRM.GlobalConstants.getAllAsync = function () {
1688
+ /// <summary>Asynchronously returns the JSON object representing the GlobalConstants variables.</summary>
1689
+ /// <returns type="Promise&lt;Object&gt;">A Promise object that will be resolved with the properties representing the constant variables.</returns>
1690
+ return MobileCRM.bridge.invokeCommandPromise("getGlobalConstants");
1691
+ };
1692
+ MobileCRM.GlobalConstants.getAsync = function (key) {
1693
+ /// <summary>Asynchronously returns the constant associated with the specified key in the GlobalConstants variables.</summary>
1694
+ /// <param name="key" type="String">The key of the constant to get.</param>
1695
+ /// <returns type="Promise&lt;Object&gt;">A Promise object that will be resolved with an object representing the constant variable.</returns>
1696
+ return MobileCRM.bridge.invokeCommandPromise("getGlobalConstants", key);
1697
+ };
1683
1698
  // MobileCRM._Settings
1684
1699
  MobileCRM._Settings = {
1685
1700
  /// <summary>MobileCRM configuration settings class.</summary>