@resconet/jsbridge 15.1.0 → 15.1.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.1.0",
3
+ "version": "15.1.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
@@ -53,7 +53,9 @@ declare module MobileCRM {
53
53
 
54
54
  class Settings {
55
55
  /**Gets the absolute URL (including the CrmOrganization).*/
56
- absoluteUrl: string;
56
+ absoluteUrl: string;
57
+ /**Gets or sets the currently selected Application ID.*/
58
+ activeAppID: string;
57
59
  /**Gets or sets the last active entity in the ActivityList.*/
58
60
  activityListInitialEntity: number;
59
61
  /**Gets or sets the application lock state (0=None, 1=Soft, 2=Permanent).*/
@@ -1433,12 +1435,39 @@ declare module MobileCRM.UI {
1433
1435
  */
1434
1436
  addItemToGrid(gridName: string, item: MobileCRM.UI.DetailViewItems.Item, column?: number, row?: number, colSpan?: number, rowSpan?: number);
1435
1437
  }
1438
+ /** Represents bulk update item status. */
1439
+ enum BulkUpdateItemStatus {
1440
+ Registered = 0,
1441
+ LoadFailed = 1,
1442
+ Loaded = 2,
1443
+ ValidateFailed = 3,
1444
+ Validated = 4,
1445
+ SaveFailed = 5,
1446
+ Saved = 6,
1447
+ }
1448
+ /** Represents bulk update item.*/
1449
+ interface BulkUpdateItem {
1450
+ /** Record id.*/
1451
+ id: string;
1452
+ /** Holds record. Can be null for records that aren't loaded yet (status Registered or LoadFailed).*/
1453
+ record: DynamicEntity;
1454
+ /** Gets bulk update item status.*/
1455
+ status: BulkUpdateItemStatus;
1456
+ /** Gets human-readable error or warning description.*/
1457
+ statusMessage: string;
1458
+ /** Indicates whether there was an error loading or saving item. */
1459
+ hasError: boolean;
1460
+ /** Indicates whether there item was saved with a warning. */
1461
+ hasWarning: boolean;
1462
+ }
1436
1463
  /**
1437
1464
  * Represents the Javascript equivalent of native entity form object.
1438
1465
  */
1439
1466
  class EntityForm {
1440
1467
  /** Gets the associated views as an array of MobileCRM.UI.IEntityList objects.*/
1441
1468
  associatedViews: Array<IEntityList>;
1469
+ /** A list of entity records editted on this bulk update form.*/
1470
+ bulkUpdateItems: Array<BulkUpdateItem>;
1442
1471
  /** Gets whether the form can be edited.*/
1443
1472
  canEdit: boolean;
1444
1473
  /** Determines if form can be closed, i.e. there are no unsaved data being edited.*/
@@ -1457,6 +1486,8 @@ declare module MobileCRM.UI {
1457
1486
  form: Form;
1458
1487
  /** Carries the custom parameters that can be specified when opening the form using { MobileCRM.UI.FormManager } */
1459
1488
  iFrameOptions: any;
1489
+ /** Indicates whether the form is bulk update form.*/
1490
+ isBulkUpdateForm: boolean;
1460
1491
  /** Indicates whether the form has unsaved data. */
1461
1492
  isDirty: boolean;
1462
1493
  /** Defines relationship with parent entity. */
@@ -2399,7 +2430,6 @@ declare module MobileCRM.UI {
2399
2430
  entities: Array<string>;
2400
2431
  source: MobileCRM.Relationship;
2401
2432
  dataSource: Array<MobileCRM.Reference>;
2402
- prevSelection: MobileCRM.Reference;
2403
2433
  allowNull: boolean;
2404
2434
 
2405
2435
  show(success: (obj?: MobileCRM.Reference) => void, failed?: (err: string) => void, scope?: any);
package/src/JSBridge.js CHANGED
@@ -540,11 +540,13 @@
540
540
  /// <summary>Represents the Javascript equivalent of native entity form object.</summary>
541
541
  /// <remarks>This object cannot be created directly. To obtain/modify this object, use <see cref="MobileCRM.UI.EntityForm.requestObject">MobileCRM.UI.EntityForm.requestObject</see> function.</remarks>
542
542
  /// <field name="associatedViews" type="Array">Gets the associated views as an array of <see cref="MobileCRM.UI._EntityList">MobileCRM.UI._EntityList</see> objects.</field>
543
+ /// <field name="bulkUpdateItems" type="Array">A list of entity records editted on this bulk update form.</field>
543
544
  /// <field name="canEdit" type="Boolean">Gets whether the form can be edited.</field>
544
545
  /// <field name="canClose" type="Boolean">Determines if form can be closed, i.e. there are no unsaved data being edited.</field>
545
546
  /// <field name="context" type="Object">Gets the specific context object for onChange and onSave handlers. The onChange context contains single property &quot;changedItem&quot; with the name of the changed detail item and the onSave context contains property &quot;errorMessage&quot; which can be used to break the save process with certain error message.</field>
546
547
  /// <field name="controllers" type="Array">Gets the form controllers (map, web) as an array of <see cref="MobileCRM.UI._Controller">MobileCRM.UI._Controller</see> objects.</field>
547
548
  /// <field name="detailViews" type="Array">Gets the detailView controls as an array of <see cref="MobileCRM.UI._DetailView">MobileCRM.UI._DetailView</see> objects.</field>
549
+ /// <field name="isBulkUpdateForm" type="Boolean">Indicates whether the form is bulk update form.</field>
548
550
  /// <field name="entity" type="MobileCRM.DynamicEntity">Gets or sets the entity instance the form is showing.</field>
549
551
  /// <field name="form" type="MobileCRM.UI.Form">Gets the top level form.</field>
550
552
  /// <field name="iFrameOptions" type="Object">Carries the custom parameters that can be specified when opening the form using <see cref="MobileCRM.UI.FormManager">MobileCRM.UI.FormManager</see>.</field>
@@ -721,9 +723,7 @@
721
723
  /// <field name="entities" type="Array">An array of allowed entity kinds (schema names).</field>
722
724
  /// <field name="source" type="MobileCRM.Relationship">The entity whose property will be set to the chosen value.</field>
723
725
  /// <field name="dataSource" type="MobileCRM.Reference[]">The list of entities that should be displayed as selected.</field>
724
- /// <field name="prevSelection" type="MobileCRM.Reference">The entity whose property will be set to the chosen value.</field>
725
726
  /// <field name="allowNull" type="Boolean">Whether to allow selecting no entity.</field>
726
- /// <field name="preventClose" type="Boolean">Whether to prevent closing form without choosing a value.</field>
727
727
  MobileCRM.UI.MultiLookupForm.superproto.constructor.apply(this, arguments);
728
728
  this.dataSource = [];
729
729
  },