@resconet/jsbridge 17.2.0-beta.1 → 17.2.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.2.0-beta.1",
3
+ "version": "17.2.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
@@ -1233,10 +1233,10 @@ declare module MobileCRM.FetchXml {
1233
1233
  * @param target The target entity.
1234
1234
  * @param from The "from" field (if parent then target entity primary key).
1235
1235
  * @param to The "to" field.
1236
- * @param linkType The link (join) type ("inner" or "outer").
1236
+ * @param linktype The link (join) type ("inner" or "outer").
1237
1237
  * @returns MobileCRM.FetchXml.LinkEntity
1238
1238
  */
1239
- addLink(target: string, from: string, to: string, linkType: string): MobileCRM.FetchXml.LinkEntity;
1239
+ addLink(target: string, from: string, to: string, linktype: string): MobileCRM.FetchXml.LinkEntity;
1240
1240
  removeLink(link: MobileCRM.FetchXml.LinkEntity): void;
1241
1241
  /**
1242
1242
  * Adds a filter for this fetch entity.
@@ -1290,7 +1290,7 @@ declare module MobileCRM.FetchXml {
1290
1290
  from?: string,
1291
1291
  to?: string,
1292
1292
  alias?: string,
1293
- linkType?: string
1293
+ linktype?: string
1294
1294
  );
1295
1295
 
1296
1296
  from: string;
package/src/JSBridge.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-this-alias */
2
2
  /* globals MobileCRM:writable, MobileCrmException:writable, CrmBridge, webkit, chrome */
3
3
  (function () {
4
- var _scriptVersion = 17.1;
4
+ var _scriptVersion = 17.2;
5
5
  // Private objects & functions
6
6
  var _inherit = (function () {
7
7
  function _() {
@@ -456,7 +456,7 @@
456
456
  this.filter = filter ? filter : null;
457
457
  this.linkentities = linkentities ? linkentities : [];
458
458
  },
459
- LinkEntity: function (name, attributes, order, filter, linkentities, from, to, alias, linkType) {
459
+ LinkEntity: function (name, attributes, order, filter, linkentities, from, to, alias, linktype) {
460
460
  /// <summary>Represents a FetchXml query linked entity.</summary>
461
461
  /// <remarks>This object is derived from <see cref="MobileCRM.FetchXml.Entity">MobileCRM.FetchXml.Entity</see></remarks>
462
462
  /// <param name="name" type="String">An entity name</param>
@@ -474,8 +474,8 @@
474
474
  if (alias) {
475
475
  this.alias = alias;
476
476
  }
477
- if (linkType) {
478
- this.linktype = linkType;
477
+ if (linktype) {
478
+ this.linktype = linktype;
479
479
  }
480
480
  },
481
481
  Attribute: function (name, alias, aggregate, groupBy, dateGrouping) {
@@ -1687,7 +1687,7 @@
1687
1687
  MobileCRM.GlobalConstants.getAllAsync = function () {
1688
1688
  /// <summary>Asynchronously returns the JSON object representing the GlobalConstants variables.</summary>
1689
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");
1690
+ return MobileCRM.bridge.invokeCommandPromise("getGlobalConstants", "");
1691
1691
  };
1692
1692
  MobileCRM.GlobalConstants.getAsync = function (key) {
1693
1693
  /// <summary>Asynchronously returns the constant associated with the specified key in the GlobalConstants variables.</summary>
@@ -2728,8 +2728,8 @@
2728
2728
  if (linkEntity.to) {
2729
2729
  linkParams.to = linkEntity.to;
2730
2730
  }
2731
- if (linkEntity.linkType) {
2732
- linkParams.linkType = linkEntity.linkType;
2731
+ if (linkEntity.linktype) {
2732
+ linkParams.linktype = linkEntity.linktype;
2733
2733
  }
2734
2734
  }
2735
2735
  return linkParams;
@@ -2870,7 +2870,7 @@
2870
2870
  /// <param name="target" type="String">The target entity.</param>
2871
2871
  /// <param name="from" type="String">The "from" field (if parent then target entity primary key).</param>
2872
2872
  /// <param name="to" type="String">The "to" field.</param>
2873
- /// <param name="linkType" type="String">The link (join) type ("inner" or "outer").</param>
2873
+ /// <param name="linktype" type="String">The link (join) type ("inner" or "outer").</param>
2874
2874
  /// <returns type="MobileCRM.FetchXml.LinkEntity">The newly created MobileCRM.FetchXml.LinkEntity object.</returns>
2875
2875
  var link = new MobileCRM.FetchXml.LinkEntity(target);
2876
2876
  link.from = from;