@resconet/jsbridge 15.3.2 → 16.0.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": "15.3.2",
3
+ "version": "16.0.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
@@ -574,6 +574,8 @@ declare module MobileCRM {
574
574
  ConflictUserAction = 0x8000,
575
575
  /** Resolves conflict by letting the device win; all entity properties are uploaded to the server. */
576
576
  ConflictDeviceWinsFullUpload = 0x10000,
577
+ /** Entity is a virtual entity, a custom entity that has fields containing data from an external data source. */
578
+ IsVirtual = 0x20000,
577
579
  /** The database table has labels for lookup fields. */
578
580
  HasLookupLabels = 0x100000,
579
581
  /** Incremental sync uses linked entities. */
@@ -914,7 +916,7 @@ declare module MobileCRM {
914
916
  class Questionnaire {
915
917
  static getQuestionName(name: string, repeatIndex: number): string;
916
918
  static getGroupName(name: string, repeatIndex: number): string;
917
- static showForm(id: string, failed?: (err: string) => void, scope?: any);
919
+ static showForm(id: string, failed?: (err: string) => void, scope?: any, relationship?: MobileCRM.Relationship);
918
920
  }
919
921
  }
920
922
  /**
package/src/JSBridge.js CHANGED
@@ -4046,12 +4046,13 @@
4046
4046
  MobileCRM.bridge.command("showMobileReportForm", JSON.stringify(params), null, failed, scope);
4047
4047
  };
4048
4048
  // MobileCRM.UI.Questionnaire
4049
- MobileCRM.Questionnaire.showForm = function(id, failed, scope) {
4049
+ MobileCRM.Questionnaire.showForm = function(id, failed, scope, relationship) {
4050
4050
  /// <summary>[v10.2] Shows the questionnaire form.</summary>
4051
4051
  /// <param name="id" type="String">Id (guid) of the questionnaire.</param>
4052
4052
  /// <param name="failed" type="function(errorMsg)">A callback which is called in case of error.</param>
4053
4053
  /// <param name="scope" type="Object">The scope for callbacks.</param>
4054
- var params = { id: id };
4054
+ /// <param name="relationship" type="MobileCRM.Relationship">Optional relationship with the parent record.</param>
4055
+ var params = { id: id, relationship: relationship };
4055
4056
  MobileCRM.bridge.command("showQuestionnaire", JSON.stringify(params), null, failed, scope);
4056
4057
  };
4057
4058
  function _padTo3digits(num) {