@resconet/jsbridge 17.2.0 → 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 +1 -1
- package/src/JSBridge.d.ts +3 -3
- package/src/JSBridge.js +7 -7
package/package.json
CHANGED
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
|
|
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,
|
|
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
|
-
|
|
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.
|
|
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,
|
|
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 (
|
|
478
|
-
this.linktype =
|
|
477
|
+
if (linktype) {
|
|
478
|
+
this.linktype = linktype;
|
|
479
479
|
}
|
|
480
480
|
},
|
|
481
481
|
Attribute: function (name, alias, aggregate, groupBy, dateGrouping) {
|
|
@@ -2728,8 +2728,8 @@
|
|
|
2728
2728
|
if (linkEntity.to) {
|
|
2729
2729
|
linkParams.to = linkEntity.to;
|
|
2730
2730
|
}
|
|
2731
|
-
if (linkEntity.
|
|
2732
|
-
linkParams.
|
|
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="
|
|
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;
|