@resconet/jsbridge 16.0.0 → 16.0.2

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": "16.0.0",
3
+ "version": "16.0.2",
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
@@ -912,6 +912,17 @@ declare module MobileCRM {
912
912
  * @param scope The scope for callbacks.
913
913
  */
914
914
  static showForm(report: MobileCRM.Reference, source: Array<MobileCRM.Reference>, fetchXml: string, failed?: (err: string) => void, scope?: any);
915
+ /**
916
+ * @since 16.0
917
+ * Shows new MobileReport form. Source for the report can be defined either as list of MobileCRM.Reference objects or as FetchXML query.
918
+ * @param report Optional reference to the resco_mobilereport entity that will be pre-selected.
919
+ * @param source The list of entity references used as report input.
920
+ * @param fetchXml The fetch XML defining the entity (entities) query used as report input.
921
+ * @param paramString Run report form Configuration string in JSON format.
922
+ * @param failed A callback which is called in case of error.
923
+ * @param scope The scope for callbacks.
924
+ */
925
+ static showFormWithConfiguration(report: MobileCRM.Reference, source: Array<MobileCRM.Reference>, fetchXml: string, paramString: string, failed?: (err: string) => void, scope?: any);
915
926
  }
916
927
  class Questionnaire {
917
928
  static getQuestionName(name: string, repeatIndex: number): string;
package/src/JSBridge.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function () {
2
- var _scriptVersion = 15.3
2
+ var _scriptVersion = 16.0
3
3
  // Private objects & functions
4
4
  var _inherit = (function () {
5
5
  function _() { }
@@ -4044,7 +4044,19 @@
4044
4044
  /// <param name="scope" type="Object">The scope for callbacks.</param>
4045
4045
  var params = { fetchXml: fetchXml, report: report, source: source };
4046
4046
  MobileCRM.bridge.command("showMobileReportForm", JSON.stringify(params), null, failed, scope);
4047
- };
4047
+ };
4048
+ MobileCRM.MobileReport.showFormWithConfiguration = function (report, source, fetchXml, paramString, failed, scope) {
4049
+ /// <summary>[v16.0] Shows new MobileReport form. Source for the report can be defined either as list of <see cref="MobileCRM.Reference">MobileCRM.Reference</see> objects or as FetchXML query.</summary>
4050
+ /// <remarks>If both types of source are passed, user can select which one to use.</remarks>
4051
+ /// <param name="report" type="MobileCRM.Reference">Optional reference to the resco_mobilereport entity that will be pre-selected.</param>
4052
+ /// <param name="source" type="MobileCRM.Reference[]">The list of entity references used as report input.</param>
4053
+ /// <param name="fetchXML" type="String">The fetch XML defining the entity (entities) query used as report input.</param>
4054
+ /// <param name="paramString" type="String">Run report form <see cref="https://docs.resco.net/wiki/Configure_Run_Report_command#Configuration_string">Configuration string</see> in JSON format.</param>
4055
+ /// <param name="failed" type="function(errorMsg)">A callback which is called in case of error.</param>
4056
+ /// <param name="scope" type="Object">The scope for callbacks.</param>
4057
+ var params = { fetchXml: fetchXml, report: report, source: source, paramString: paramString };
4058
+ MobileCRM.bridge.command("showMobileReportForm", JSON.stringify(params), null, failed, scope);
4059
+ };
4048
4060
  // MobileCRM.UI.Questionnaire
4049
4061
  MobileCRM.Questionnaire.showForm = function(id, failed, scope, relationship) {
4050
4062
  /// <summary>[v10.2] Shows the questionnaire form.</summary>