@resconet/jsbridge 16.0.2 → 16.1.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 +1 -1
- package/src/JSBridge.d.ts +12 -0
- package/src/JSBridge.js +22 -1
package/package.json
CHANGED
package/src/JSBridge.d.ts
CHANGED
|
@@ -368,6 +368,17 @@ declare module MobileCRM {
|
|
|
368
368
|
static loadAsync(entityName: string, id: string): Promise<Reference>;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
+
/**
|
|
372
|
+
* Person or group associated with an activity.
|
|
373
|
+
* An activity can have multiple activity parties.
|
|
374
|
+
*/
|
|
375
|
+
class ActivityParty extends Reference {
|
|
376
|
+
/** Gets or sets whether the party is direct (email) or a pointer to an CRM record.*/
|
|
377
|
+
isDirectParty: boolean;
|
|
378
|
+
/** The actual email address used.*/
|
|
379
|
+
addressUsed: string;
|
|
380
|
+
}
|
|
381
|
+
|
|
371
382
|
class Relationship {
|
|
372
383
|
constructor(sourceProperty: string, target?: Reference, intersectEntity?: string, intersectProperty?: string);
|
|
373
384
|
|
|
@@ -1455,6 +1466,7 @@ declare module MobileCRM.UI {
|
|
|
1455
1466
|
label: string;
|
|
1456
1467
|
dataMember: string;
|
|
1457
1468
|
errorMessage: string;
|
|
1469
|
+
supportingText: string;
|
|
1458
1470
|
isEnabled: boolean;
|
|
1459
1471
|
isVisible: boolean;
|
|
1460
1472
|
value: any;
|
package/src/JSBridge.js
CHANGED
|
@@ -286,6 +286,23 @@
|
|
|
286
286
|
this.primaryName = primaryName;
|
|
287
287
|
},
|
|
288
288
|
|
|
289
|
+
ActivityParty: function (entityName, id, primaryName, isDirectParty, addressUsed) {
|
|
290
|
+
/// <summary>Person or group associated with an activity. An activity can have multiple activity parties.</summary>
|
|
291
|
+
/// <param name="entityName" type="String">The logical entity name of the party (account, contact, lead, systemuser, etc.)</param>
|
|
292
|
+
/// <param name="id" type="String">GUID of the existing entity or null for new one or direct party.</param>
|
|
293
|
+
/// <param name="primaryName" type="String">The human readable name of the reference, e.g "Alexandro".</param>
|
|
294
|
+
/// <param name="isDirectParty" type="Boolean">Gets or sets whether the party is direct (email) or a pointer to an CRM record.</param>
|
|
295
|
+
/// <param name="addressUsed" type="String">Gets or sets the actual address used.</param>
|
|
296
|
+
/// <field name="entityName" type="String">The entity name of the party (account, contact, lead, systemuser, etc.)</field>
|
|
297
|
+
/// <field name="id" type="String">GUID of the existing entity or null for new one or direct party.</field>
|
|
298
|
+
/// <field name="primaryName" type="String">The human readable name of the reference, e.g. "Alexandro".</field>
|
|
299
|
+
/// <field name="isDirectParty" type="Boolean">Gets or sets whether the party is direct (email) or a pointer to an CRM record.</field>
|
|
300
|
+
/// <field name="addressUsed" type="String">Gets or sets the actual address used.</field>
|
|
301
|
+
MobileCRM.ActivityParty.superproto.constructor.apply(this, arguments);
|
|
302
|
+
this.isDirectParty = isDirectParty;
|
|
303
|
+
this.addressUsed = addressUsed;
|
|
304
|
+
},
|
|
305
|
+
|
|
289
306
|
Relationship: function (sourceProperty, target, intersectEntity, intersectProperty) {
|
|
290
307
|
/// <summary>Represents a relationship between two entities.</summary>
|
|
291
308
|
/// <param name="sourceProperty" type="String">Gets the name of the source of the relationship.</param>
|
|
@@ -757,6 +774,7 @@
|
|
|
757
774
|
/// <field name="label" type="String">Gets or sets the item label.</field>
|
|
758
775
|
/// <field name="dataMember" type="String">Gets or sets the name of the property containing the item value in data source objects.</field>
|
|
759
776
|
/// <field name="errorMessage" type="String">Gets or sets the item error message.</field>
|
|
777
|
+
/// <field name="supportingText" type="String">Gets or sets the item supporting text (e.g. description).</field>
|
|
760
778
|
/// <field name="isEnabled" type="Boolean">Gets or sets whether the item is editable.</field>
|
|
761
779
|
/// <field name="isVisible" type="Boolean">Gets or sets whether the item is visible.</field>
|
|
762
780
|
/// <field name="value" type="Object">Gets or sets the bound item value.</field>
|
|
@@ -2047,7 +2065,10 @@
|
|
|
2047
2065
|
/// <param name="failed" type="function(error)">A callback function for command failure. The <b>error</b> argument will carry the error message.</param>
|
|
2048
2066
|
/// <param name="scope" type="">A scope for calling the callbacks; set "null" to call the callbacks in global scope.</param>
|
|
2049
2067
|
MobileCRM.ManyToManyReference.addRecord(entityName, ref1, ref2, false, success, failed, scope);
|
|
2050
|
-
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
// MobileCRM.ActivityParty
|
|
2071
|
+
_inherit(MobileCRM.ActivityParty, MobileCRM.Reference);
|
|
2051
2072
|
|
|
2052
2073
|
// MobileCRM.DynamicEntity
|
|
2053
2074
|
_inherit(MobileCRM.DynamicEntity, MobileCRM.Reference);
|