@resconet/jsbridge 15.3.0 → 15.3.2-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 +397 -326
- package/src/JSBridge.js +4 -8
package/package.json
CHANGED
package/src/JSBridge.d.ts
CHANGED
|
@@ -50,190 +50,190 @@ declare module MobileCRM {
|
|
|
50
50
|
public static requestObject(callback: (config: Configuration) => void, erroCallback?: (error: string) => void, scope?: any);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
class Settings {
|
|
54
|
+
/**Gets the absolute URL (including the CrmOrganization).*/
|
|
55
55
|
absoluteUrl: string;
|
|
56
56
|
/**Gets or sets the currently selected Application ID.*/
|
|
57
57
|
activeAppID: string;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
58
|
+
/**Gets or sets the last active entity in the ActivityList.*/
|
|
59
|
+
activityListInitialEntity: number;
|
|
60
|
+
/**Gets or sets the application lock state (0=None, 1=Soft, 2=Permanent).*/
|
|
61
|
+
applicationLock: number;
|
|
62
|
+
/**Gets or sets the last active view mode in Calendar view.*/
|
|
63
|
+
appointmentViewMode: number;
|
|
64
|
+
/**Gets or sets the CRM server authentication method (0=ActiveDirectory, 1=CRM Online, 2=Internet facing., 3=CRM Online EMEA, 4=CRM Online APAC).*/
|
|
65
|
+
authenticationType: number;
|
|
66
|
+
/**Gets or sets when the application starts to sync on the background (0=Never, 1=OnStart, 2=OnChange, 3=OnStartAndChange).*/
|
|
67
|
+
autoSync: number;
|
|
68
|
+
/**Gets the number of seconds to wait before syncing after data change. Negative to disable.*/
|
|
69
|
+
autoSyncAfterChange: number;
|
|
70
|
+
/**Gets the number of seconds to wait before syncing after data change in online mode. 0 or negative to disable, default is 1.*/
|
|
71
|
+
autoSyncAfterStart: number;
|
|
72
|
+
/**Gets or sets the automatic sync delay in seconds.*/
|
|
73
|
+
autoSyncDelay: number;
|
|
74
74
|
/** Indicates whether the password can be used. All DB operations are forbidden until this flag is set.*/
|
|
75
75
|
canUsePassword: boolean;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
76
|
+
/**Gets or sets whether entities can be disabled on the client.*/
|
|
77
|
+
clientCustomize: boolean;
|
|
78
|
+
/**Gets or sets whether to create the call entity after a call has been made from MobileCRM.*/
|
|
79
|
+
createCallEntity: boolean;
|
|
80
|
+
/**Gets or sets the discovered CRM service authentication server url.*/
|
|
81
|
+
crm2011AuthUrl: string;
|
|
82
|
+
/**Gets or sets the discovered CRM service authentication type.*/
|
|
83
|
+
crm2011AuthType: string;
|
|
84
|
+
/**Gets or sets the token (cookie) issued by LiveId services identifying this device.*/
|
|
85
|
+
crmOnlineDeviceToken: Date;
|
|
86
|
+
/**Gets or sets when the "CrmOnlineDeviceToken" expires (in UTC).*/
|
|
87
|
+
crmOnlineDeviceTokenExpires: Date;
|
|
88
|
+
/**Gets or sets the CRM organization (Absolute path in org url).*/
|
|
89
|
+
crmOrganization: string;
|
|
90
|
+
/**Gets or sets the discovered CRM service version (4 or 5).*/
|
|
91
|
+
crmWebServiceVersion: number;
|
|
92
|
+
/**Gets or sets the the discovered CRM service minor version (13 - for CRM 2011 Rollup 13 and up).*/
|
|
93
|
+
crmWebServiceMinorVersion: number;
|
|
94
|
+
/**Gets or sets the organization Pricing Decimal Precision configuration option (0..4).*/
|
|
95
|
+
currencyDecimalPrecision: number;
|
|
96
|
+
/**Gets or sets the currency field display option 0- Symbol ($), 1 - Code (USD).*/
|
|
97
|
+
currencyDisplayOption: string;
|
|
98
|
+
/**Gets or sets the customization directory.*/
|
|
99
|
+
customizationDirectory: string;
|
|
100
|
+
/**Gets or sets the database local language (for case-insensitive and language dependent compare). E.g. "en-US".*/
|
|
101
|
+
databaseLocale: string;
|
|
102
|
+
/**Gets the database schema hash.*/
|
|
103
|
+
databaseSchemaHash: string;
|
|
104
|
+
/**(Android only) Gets or sets the application Density (120=Low, 160=Medium, 240=High, 320=ExtraHigh, 480=ExtraExtraHigh).*/
|
|
105
|
+
density: number;
|
|
106
|
+
/**Gets or sets the device friendly name (Steve's iPhone).*/
|
|
107
|
+
deviceFriendlyName: string;
|
|
108
|
+
/**Gets or sets the hardware unique id.*/
|
|
109
|
+
deviceIdentifier: string;
|
|
110
|
+
/**Gets or sets the device system an hw information (OS, etc.)*/
|
|
111
|
+
deviceInfo: string;
|
|
112
|
+
/**Gets or sets the device name (Base64 encoded "InternalDeviceId").*/
|
|
113
|
+
deviceName: string;
|
|
114
|
+
/**Gets the names of the disabled entities. Use for limited runtime customization.*/
|
|
115
|
+
disabledEntities: boolean;
|
|
116
|
+
/**Gets or sets the user domain.*/
|
|
117
|
+
domain: string;
|
|
118
|
+
/**Gets or sets the email signature.*/
|
|
119
|
+
emailSignature: string;
|
|
120
|
+
/**(Android, WIndows Mobile)Enables the Call Import form (appears on the Home form)*/
|
|
121
|
+
enableCallImport: boolean;
|
|
122
|
+
/**Enables the Dashboard form (appears on the Home form).*/
|
|
123
|
+
enableDashboard: boolean;
|
|
124
|
+
enableListButtons: boolean;
|
|
125
|
+
/**Enables the Map form (appears on the Home form).*/
|
|
126
|
+
forcedFullSyncDate: Date;
|
|
127
|
+
/**Prevents remembered password to be used for next login.*/
|
|
128
|
+
forgetPassword: boolean;
|
|
129
|
+
/**Gets or sets the option for generating the entity full name (contact, lead)
|
|
130
|
+
e.g. how to combine the first, middle and last name (0="L,F", 1="F L", 2="L,F m", 3="F m L", 4="L,F M", 5="F M L", 6="L F", 7="LF").*/
|
|
131
|
+
fullNameConventionCode: number;
|
|
132
|
+
/**Gets whether there were any synchronization errors encountered.*/
|
|
133
|
+
hasSyncErrors: boolean;
|
|
134
|
+
/**Gets whether reminders should be scheduled for tasks.*/
|
|
135
|
+
hasTaskReminder: boolean;
|
|
136
|
+
/**Gets or sets the URL of the authentication server (ADFS) in case of multi domain deployment.*/
|
|
137
|
+
homeRealm: string;
|
|
138
|
+
/**Gets or sets whether to ignore HTTPS certificate errors. (Should be used for evaluation and DEBUG only!)*/
|
|
139
|
+
ignoreCertificateErrors: boolean;
|
|
140
|
+
/**Gets or sets the invalid login count.*/
|
|
141
|
+
invalidLoginCount: number;
|
|
142
|
+
/**Gets or sets the device id (GUID).*/
|
|
143
|
+
internalDeviceId: string;
|
|
144
|
+
/**(WP7 only)Gets or sets the UI theme (Dark or Light).*/
|
|
145
|
+
isDarkTheme: boolean;
|
|
146
|
+
/**Gets or sets whether the current database contains demo data and should not be synced.*/
|
|
147
|
+
isDemoDatabase: boolean;
|
|
148
148
|
/**Gets or sets whether the current user is demo user. */
|
|
149
149
|
isDemoUser: boolean;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
150
|
+
/**Gets whether the login is for a CRM Online instance.*/
|
|
151
|
+
isCrmOnline: boolean
|
|
152
|
+
/**Gets whether the login information is valid and complete.
|
|
153
|
+
Indicates whether the user name and password are non-empty.
|
|
154
|
+
Whether they are correct is up to the we service. Also checks whether the web service url is non-empty.*/
|
|
155
|
+
isValid: boolean;
|
|
156
|
+
/**Gets or sets the UI text language.*/
|
|
157
|
+
language: string;
|
|
158
|
+
/**Gets or sets the time of the last processed call history entry.(Android, WM)*/
|
|
159
|
+
lastProcessedCallTime: Date;
|
|
160
|
+
/**Gets or sets the time of the last server contact (either sync or security policy).*/
|
|
161
|
+
lastServerContact: Date;
|
|
162
|
+
/**Gets or sets the last synchronization end date.*/
|
|
163
|
+
lastSyncDate: Date;
|
|
164
|
+
/**Gets or sets the last user interaction time.*/
|
|
165
|
+
lastUserInteraction: Date;
|
|
166
|
+
/**Gets or sets the synchronization service password.*/
|
|
167
|
+
legacyPassword: string;
|
|
168
|
+
/**Gets or sets the reason of the application lock.*/
|
|
169
|
+
lockReason: string;
|
|
170
|
+
/**Gets or sets the time in seconds after which the password expires and application login is required.*/
|
|
171
|
+
loginTimeout: number;
|
|
172
|
+
/**Gets or sets the maximum attachment size to sync (in KB).*/
|
|
173
|
+
maxAttachmentSize: number;
|
|
174
|
+
/**Gets or sets the maximum number of records (per entity) to download.*/
|
|
175
|
+
maxSyncCount: number;
|
|
176
|
+
/**Gets or sets whether to use multi-threaded synchronization. Default true.*/
|
|
177
|
+
multiThreadSync: boolean;
|
|
178
|
+
/**Gets or sets when and how the application is switched to online mode (0=Always, 1=WifiOnly, 2=Manual, 3=Never).*/
|
|
179
|
+
onlineMode: number;
|
|
180
|
+
/**Gets or sets the organization name. Obsolete, only for compatibility.*/
|
|
181
|
+
organization: string;
|
|
182
|
+
/** Gets or sets the current user's organization GUID (given by the server).*/
|
|
183
|
+
organizationId: string;
|
|
184
|
+
/**Gets or sets the synchronization service password.*/
|
|
185
|
+
password: string;
|
|
186
|
+
/**Gets or sets the password hash.*/
|
|
187
|
+
passwordHash: string;
|
|
188
|
+
/**Gets or sets the URL scheme of application used for making calls.*/
|
|
189
|
+
phoneApplication: string;
|
|
190
|
+
/**Gets or sets the push id used for push notification send to this device.(Android, iOS)*/
|
|
191
|
+
pushId: string;
|
|
192
|
+
/**Gets the list of read-only settings.*/
|
|
193
|
+
readonlySettings: Array<string>;
|
|
194
|
+
/**Gets or sets whether the user must login at sync start.*/
|
|
195
|
+
requireSyncLogin: boolean;
|
|
196
|
+
/**Gets or sets whether to store the encrypted password in the config file.*/
|
|
197
|
+
savePassword: boolean;
|
|
198
|
+
/**Gets or sets whether to store signature attachments as SVG (vector) or PNG (image).*/
|
|
199
|
+
saveSignatureAsImage: boolean;
|
|
200
|
+
/**Gets or sets the hash code of the last downloaded security policy (zero for no policy).*/
|
|
201
|
+
secRulesHash: number;
|
|
202
|
+
/**Gets the CRM server host name.*/
|
|
203
|
+
serverHostName: string;
|
|
204
|
+
/**Gets or sets the version of the settings file as send with the customization.*/
|
|
205
|
+
serverSettingsVersion: string;
|
|
206
|
+
/**Gets or sets the server version, either 4 for CRM 4.0 or 5 for CRM 2011.*/
|
|
207
|
+
serverVersion: number;
|
|
208
|
+
/**Gets or sets the number of incremental synchronizations performed so far.*/
|
|
209
|
+
syncCount: number;
|
|
210
|
+
/**Gets or sets the sync filter file hash code.*/
|
|
211
|
+
syncFilterHash: string;
|
|
212
|
+
/**Gets or sets the current user GUID (given by the server).*/
|
|
213
|
+
systemUserId: string;
|
|
214
|
+
/**Gets or sets the last active entity in the Tourplan (Calendar).*/
|
|
215
|
+
tourplanInitialEntity: string;
|
|
216
|
+
/**Gets or sets whether to update entity objectypecodes on first sync.*/
|
|
217
|
+
updateObjectTypeCodes: boolean;
|
|
218
|
+
/**Gets or sets whether to create a CRM email entity or use the platform email service.*/
|
|
219
|
+
useCrmEmail: boolean;
|
|
220
|
+
/**Gets or sets whether to store attachment blobs in database or in files. If you change this setting you must perform a full sync!*/
|
|
221
|
+
useDatabaseBlobStore: boolean;
|
|
222
|
+
/**Gets or sets whether the database is encrypted. Only used when the database is created (full sync). Default true.*/
|
|
223
|
+
useDatabaseEncryption: boolean;
|
|
224
|
+
/**Gets or sets the user's default currency GUID. If not set use the organization default.*/
|
|
225
|
+
userDefaultCurrencyId: string;
|
|
226
|
+
/**Gets or sets the full user name (domain slash name).*/
|
|
227
|
+
userLogin: string;
|
|
228
|
+
/**Gets or sets the user name.*/
|
|
229
|
+
userName: string;
|
|
230
|
+
/**Gets or sets whether to use RowVersion or ModifiedOn based sync. Default is true.*/
|
|
231
|
+
useRowVersionChangeTracking: boolean;
|
|
232
|
+
/**Gets or sets the web service URL used for synchronization.*/
|
|
233
|
+
url: string;
|
|
234
|
+
/**Gets or sets whether to verify server SSL certificate. Since 6.3, default false (don't verify SSL).*/
|
|
235
|
+
verifyServerCertificate: boolean;
|
|
236
|
+
}
|
|
237
237
|
|
|
238
238
|
class Localization {
|
|
239
239
|
public static stringTable: { [key: string]: string };
|
|
@@ -380,7 +380,7 @@ declare module MobileCRM {
|
|
|
380
380
|
/**
|
|
381
381
|
* Class for managing many to many relations.
|
|
382
382
|
*/
|
|
383
|
-
class ManyToManyReference
|
|
383
|
+
class ManyToManyReference {
|
|
384
384
|
/**
|
|
385
385
|
* [Obsolete]Adds or removes an N-N relationship record between the two passed entities.
|
|
386
386
|
* @param entityName The relationship entity name.
|
|
@@ -463,7 +463,7 @@ declare module MobileCRM {
|
|
|
463
463
|
getEntity(name: string): MobileCRM.MetaEntity;
|
|
464
464
|
/**
|
|
465
465
|
* Gets the MetaEntity object describing the entity attributes
|
|
466
|
-
|
|
466
|
+
* @requires required to request the Metadata object prior to using this object. See @see MobileCRM.Metadata.requestObject .
|
|
467
467
|
* @param name logical name of entity.
|
|
468
468
|
*/
|
|
469
469
|
static getEntity(name: string): MobileCRM.MetaEntity;
|
|
@@ -479,6 +479,8 @@ declare module MobileCRM {
|
|
|
479
479
|
* Represents an entity metadata.
|
|
480
480
|
*/
|
|
481
481
|
class MetaEntity {
|
|
482
|
+
attributes: EntityAttributes;
|
|
483
|
+
|
|
482
484
|
canRead(): boolean;
|
|
483
485
|
canWrite(): boolean;
|
|
484
486
|
canCreate(): boolean;
|
|
@@ -535,6 +537,67 @@ declare module MobileCRM {
|
|
|
535
537
|
isSingularParty: boolean;
|
|
536
538
|
}
|
|
537
539
|
|
|
540
|
+
enum EntityAttributes {
|
|
541
|
+
/** No additional attributes. */
|
|
542
|
+
None = 0,
|
|
543
|
+
/** Entity is an activity. */
|
|
544
|
+
IsActivity = 0x0001,
|
|
545
|
+
/** Entity is a child. */
|
|
546
|
+
IsChild = 0x0002,
|
|
547
|
+
/** Custom entity. */
|
|
548
|
+
IsCustom = 0x0004,
|
|
549
|
+
/** Intersection entity (Many to Many). */
|
|
550
|
+
IsIntersect = 0x0008,
|
|
551
|
+
/** Entity is an regular activity. */
|
|
552
|
+
IsRegularActivity = 0x0010,
|
|
553
|
+
/** Entity is only available in online mode. */
|
|
554
|
+
IsOnlineOnly = 0x0020,
|
|
555
|
+
/** Disable read permission. */
|
|
556
|
+
NoRead = 0x0040,
|
|
557
|
+
/** Disable write permission. */
|
|
558
|
+
NoWrite = 0x0080,
|
|
559
|
+
/** Disable create permission. */
|
|
560
|
+
NoCreate = 0x0100,
|
|
561
|
+
/** Disable delete permission. */
|
|
562
|
+
NoDelete = 0x0200,
|
|
563
|
+
/** Disable append permission. */
|
|
564
|
+
NoAppend = 0x0400,
|
|
565
|
+
/** Disable appendTo permission. */
|
|
566
|
+
NoAppendTo = 0x0800,
|
|
567
|
+
/** Disable assign permission. */
|
|
568
|
+
NoAssign = 0x1000,
|
|
569
|
+
/** Disable share permission. */
|
|
570
|
+
NoShare = 0x2000,
|
|
571
|
+
/** Resolves conflict by letting the device win. */
|
|
572
|
+
ConflictDeviceWins = 0x4000,
|
|
573
|
+
/** Resolves conflict by taking no action. User must decide; only changed entity properties are uploaded to the server. */
|
|
574
|
+
ConflictUserAction = 0x8000,
|
|
575
|
+
/** Resolves conflict by letting the device win; all entity properties are uploaded to the server. */
|
|
576
|
+
ConflictDeviceWinsFullUpload = 0x10000,
|
|
577
|
+
/** The database table has labels for lookup fields. */
|
|
578
|
+
HasLookupLabels = 0x100000,
|
|
579
|
+
/** Incremental sync uses linked entities. */
|
|
580
|
+
SyncLinked = 0x200000,
|
|
581
|
+
/** Incremental sync does not use linked entities. */
|
|
582
|
+
NoSyncLinked = 0x400000,
|
|
583
|
+
/** Always force full sync for this entity (Upload. */
|
|
584
|
+
FullSync = 0x800000,
|
|
585
|
+
/** Audit database operations. */
|
|
586
|
+
DatabaseAudit = 0x1000000,
|
|
587
|
+
/** Incremental sync filter uses normal sync filter. */
|
|
588
|
+
IncrementalSyncFilter = 0x2000000,
|
|
589
|
+
/** Salesforce only - Sync will perform additional scanning to ensure all linked ContentDocuments visible to users are download for offline usage. */
|
|
590
|
+
DownloadAllLinkedSalesforceFiles = 0x4000000,
|
|
591
|
+
/** Dynamics only - Server Entity does not have VersionNumber (RowVersion) field. This flag is set if AppSettings.CustomizationLevel>0. */
|
|
592
|
+
NoVersionNumber = 0x8000000,
|
|
593
|
+
/** Salesforce only - Feed items for this entity should be synced */
|
|
594
|
+
SyncSalesforceEntityFeed = 0x10000000,
|
|
595
|
+
/** Sync uploader does not leave status update for 2nd pass, but uploads it with the data. */
|
|
596
|
+
UploadStatusWithData = 0x20000000,
|
|
597
|
+
/** Salesforce only - Shared records for this entity should be synced */
|
|
598
|
+
SyncSharedSalesforce = 0x40000000,
|
|
599
|
+
}
|
|
600
|
+
|
|
538
601
|
class _DeviceInfo {
|
|
539
602
|
name: string;
|
|
540
603
|
oSVersion: string;
|
|
@@ -548,7 +611,7 @@ declare module MobileCRM {
|
|
|
548
611
|
screenWidth: number;
|
|
549
612
|
screenHeight: number;
|
|
550
613
|
screenDensity: number;
|
|
551
|
-
|
|
614
|
+
isMultiPanel: boolean;
|
|
552
615
|
customImagePath: string;
|
|
553
616
|
|
|
554
617
|
public static openUrl(url: string);
|
|
@@ -584,24 +647,24 @@ declare module MobileCRM {
|
|
|
584
647
|
* @returns Promise resolved with Location object.
|
|
585
648
|
*/
|
|
586
649
|
public static getLocationAsync(age?: number, precision?: number, timeout?: number): Promise<Location>;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
650
|
+
public static requestObject(callback: (platform: Platform) => void, errorCallback: () => void, scope?: any);
|
|
651
|
+
/**
|
|
652
|
+
* @since 8.1
|
|
653
|
+
* Opens the platform-specific call application with specified phone number.
|
|
654
|
+
* @param phoneNumber Phone number.
|
|
655
|
+
* @param failed A callback function for command failure. The <b>error</b> argument will carry the error message.
|
|
593
656
|
* @param scope A scope for calling the callbacks; set "null" to call the callbacks in global scope.
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
657
|
+
*/
|
|
658
|
+
public static makeCall(phoneNumber: string, failed?: (error: string) => void, scope?: any);
|
|
659
|
+
/**
|
|
660
|
+
* @since 11.2.3
|
|
661
|
+
* Opens the platform-specific sms application with specified phone number and pre-fill text.
|
|
662
|
+
* @param phoneNumber Phone number.
|
|
663
|
+
* @param text SMS text.
|
|
664
|
+
* @param failed A callback function for command failure. The <b>error</b> argument will carry the error message.
|
|
602
665
|
* @param scope A scope for calling the callbacks; set "null" to call the callbacks in global scope.
|
|
603
|
-
|
|
604
|
-
|
|
666
|
+
*/
|
|
667
|
+
public static sendSMS(phoneNumber: string, text: string, failed?: (error: string) => void, scope?: any);
|
|
605
668
|
/**
|
|
606
669
|
* @since 8.1
|
|
607
670
|
* Opens the platform-specific e-mail message form with pre-filled data.
|
|
@@ -618,7 +681,7 @@ declare module MobileCRM {
|
|
|
618
681
|
* @param address Recipients email address.
|
|
619
682
|
* @param subject An e-mail subject.
|
|
620
683
|
* @param body A string with email body.
|
|
621
|
-
|
|
684
|
+
* @param mimeType Body content MIME type.
|
|
622
685
|
* @param errorCallback The errorCallback which is called asynchronously in case of error.
|
|
623
686
|
* @param scope The scope for errorCallback.
|
|
624
687
|
*/
|
|
@@ -837,7 +900,16 @@ declare module MobileCRM {
|
|
|
837
900
|
* @returns The file path to successfully created report.
|
|
838
901
|
*/
|
|
839
902
|
static runReportAsync(fetch: string, reportXML: string, reportFormat: string, isExportOnly: boolean, isOnline: boolean, outputFile: string): Promise<string>;
|
|
840
|
-
|
|
903
|
+
/**
|
|
904
|
+
* @since 10.1
|
|
905
|
+
* Shows new MobileReport form. Source for the report can be defined either as list of MobileCRM.Reference objects or as FetchXML query.
|
|
906
|
+
* @param report Optional reference to the resco_mobilereport entity that will be pre-selected.
|
|
907
|
+
* @param source The list of entity references used as report input.
|
|
908
|
+
* @param fetchXml The fetch XML defining the entity (entities) query used as report input.
|
|
909
|
+
* @param failed A callback which is called in case of error.
|
|
910
|
+
* @param scope The scope for callbacks.
|
|
911
|
+
*/
|
|
912
|
+
static showForm(report: MobileCRM.Reference, source: Array<MobileCRM.Reference>, fetchXml: string, failed?: (err: string) => void, scope?: any);
|
|
841
913
|
}
|
|
842
914
|
class Questionnaire {
|
|
843
915
|
static getQuestionName(name: string, repeatIndex: number): string;
|
|
@@ -1132,12 +1204,12 @@ declare module MobileCRM.Services {
|
|
|
1132
1204
|
address: string;
|
|
1133
1205
|
public static getCompanyInfoFromVat(vat: string | number, success: (result: MobileCRM.Services.CompanyInformation) => void, failed?: (err: string) => void, scope?: any);
|
|
1134
1206
|
}
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1207
|
+
class FileInfo {
|
|
1208
|
+
filePath: string;
|
|
1209
|
+
url: string;
|
|
1138
1210
|
mimeType: string;
|
|
1139
1211
|
nextInfo: FileInfo;
|
|
1140
|
-
|
|
1212
|
+
}
|
|
1141
1213
|
class DocumentService {
|
|
1142
1214
|
/**Gets or sets the maximum captured image size. If captured image size is greater, the image is resized to specified maximum size. [640x480,1024x768,1600x1200,2048x1536,2592x1936].*/
|
|
1143
1215
|
maxImageSize: string;
|
|
@@ -1152,16 +1224,16 @@ declare module MobileCRM.Services {
|
|
|
1152
1224
|
/**Indicates whether to allow handling of cancel event. Callback will pass the null argument in this case.*/
|
|
1153
1225
|
allowCancelHandler: boolean;
|
|
1154
1226
|
|
|
1155
|
-
|
|
1156
|
-
|
|
1227
|
+
capturePhoto(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1228
|
+
selectPhoto(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1157
1229
|
selectMultiplePhotos(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1158
1230
|
loadFrom(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1159
1231
|
loadFromMultiple(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1160
1232
|
selectFile(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1161
1233
|
selectMultipleFiles(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1234
|
+
recordAudio(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1235
|
+
recordVideo(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1236
|
+
pasteFile(callback: (fileInfo: FileInfo) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1165
1237
|
resizeImage(filePath: string, maxWidth: number, maxHeight: number, callback: (result: boolean) => void, scope?: any);
|
|
1166
1238
|
/**
|
|
1167
1239
|
* @since 11.2
|
|
@@ -1173,22 +1245,22 @@ declare module MobileCRM.Services {
|
|
|
1173
1245
|
* @param scope A scope for calling the callbacks. Set to call the callbacks in global scope.
|
|
1174
1246
|
*/
|
|
1175
1247
|
saveFileDialog(fileName: string, fileData: string, success: (result: boolean) => void, failed?: (err: string) => void, scope?: any)
|
|
1176
|
-
|
|
1248
|
+
}
|
|
1177
1249
|
/** Represents the synchronization result.
|
|
1178
1250
|
* @property newCustomizationReady {boolean} Indicates whether the new customization is ready.
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1251
|
+
* @property customizationDownloaded {boolean} Indicates whether the new customization was applied.
|
|
1252
|
+
* @property dataErrorsEncountered {boolean} Indicates whether some data errors were encountered during sync (cannot upload, delete, change status, owner, etc.).
|
|
1253
|
+
* @property appWasLocked {boolean} Application was locked.
|
|
1254
|
+
* @property syncAborted {boolean} Sync was aborted.
|
|
1255
|
+
* @property adminFullSync {boolean} Full sync was requested so background sync was aborted.
|
|
1256
|
+
* @property wasBackgroundSync {boolean} Indicates whether the last sync was background sync or foreground sync.
|
|
1257
|
+
* @property connectFailed {boolean} Indicates whether sync could not start because of a connection failure.
|
|
1258
|
+
* @property webError {boolean} Indicates whether sync failed due to a communication error (HttpException, for example).
|
|
1259
|
+
* @property OAuthError {boolean} Sync failed because the OAuth access token can't be acquired or refreshed.
|
|
1260
|
+
* @property syncDownloadRestartedOnBackground {boolean} New customization was downloaded. Sync is still downloading data on background.
|
|
1261
|
+
* @property warning {boolean} Sync result contains some warnings that are not critical.
|
|
1190
1262
|
*/
|
|
1191
|
-
|
|
1263
|
+
class SynchronizationResult {
|
|
1192
1264
|
constructor(synchronizationResult?: number);
|
|
1193
1265
|
newCustomizationReady: boolean;
|
|
1194
1266
|
customizationDownloaded: boolean;
|
|
@@ -1202,77 +1274,77 @@ declare module MobileCRM.Services {
|
|
|
1202
1274
|
OAuthError: boolean;
|
|
1203
1275
|
syncDownloadRestartedOnBackground: boolean;
|
|
1204
1276
|
warning: boolean;
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1277
|
+
}
|
|
1278
|
+
class AddressBookService {
|
|
1279
|
+
public static getService(errorCallback?: (error: string) => void, scope?: any): AddressBookService;
|
|
1280
|
+
getContact(id: string, callback: (addressBookRecord: MobileCRM.Services.AddressBookService.AddressBookRecord) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1281
|
+
}
|
|
1282
|
+
class ChatService {
|
|
1283
|
+
chatUser: MobileCRM.DynamicEntity;
|
|
1284
|
+
userEntity: string;
|
|
1285
|
+
userId: string;
|
|
1286
|
+
|
|
1287
|
+
static getService(callback: (res: MobileCRM.Services.ChatService) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1288
|
+
postMessage(regardingEntity: MobileCRM.Reference, text: string, callback?: (res: MobileCRM.DynamicEntity) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1289
|
+
attachNoteToPost(postId: string, filePath: string, mimeType: string, subject: string, callback?: (res: MobileCRM.DynamicEntity) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1290
|
+
subscribeToEntityChannel(regardingEntity: MobileCRM.Reference, subscribe: boolean, callback?: (res: MobileCRM.DynamicEntity) => void, errorCallback?: (error: string) => void, scope?: any);
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
class GeoAddress {
|
|
1294
|
+
streetNumber: string;
|
|
1295
|
+
street: string;
|
|
1296
|
+
city: string;
|
|
1297
|
+
zip: string;
|
|
1298
|
+
stateOrProvince: string;
|
|
1299
|
+
country: string;
|
|
1300
|
+
isValid: string;
|
|
1301
|
+
|
|
1302
|
+
public static fromLocation(latitude: number, longitude: number, success: (res: MobileCRM.Services.GeoAddress) => void, failed?: (error: string) => void, scope?: any);
|
|
1303
|
+
public toLocation(success: (res: Location) => void, failed?: (error: string) => void, scope?: any);
|
|
1304
|
+
}
|
|
1305
|
+
class HttpWebRequest {
|
|
1306
|
+
/**The HTTP method to use for the request (e.g. "POST", "GET", "PUT")*/
|
|
1307
|
+
public method: string;
|
|
1308
|
+
/**An object of additional header key/value pairs to send along with requests using the HttpWebRequest.*/
|
|
1309
|
+
public headers: any;
|
|
1310
|
+
/**The body content of HttpWebRequest.*/
|
|
1311
|
+
private body: string;
|
|
1312
|
+
/**ending data content type.*/
|
|
1313
|
+
public contentType: string;
|
|
1314
|
+
/**The encoding (default: UTF-8), e.g. UTF-8, ASCII, Base64*/
|
|
1315
|
+
private encoding: number;
|
|
1316
|
+
/**The HttpWebResponse content type.*/
|
|
1317
|
+
private responseType: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* Allow to send http web request against an HTTP server.
|
|
1320
|
+
* @param url Url of server where HTTP request will be sent.
|
|
1321
|
+
* @param callback A callback function which will obtain the web response. @see IWebResponse.
|
|
1322
|
+
* @param scope The scope for callbacks.
|
|
1323
|
+
*/
|
|
1252
1324
|
public send(url: string, callback: (res: IWebResponse) => void, scope?: any);
|
|
1253
1325
|
/**
|
|
1254
|
-
|
|
1255
|
-
|
|
1326
|
+
* Allow to send http web request against an HTTP server.
|
|
1327
|
+
* @param url Url of server where HTTP request will be sent.
|
|
1256
1328
|
* @returns A Promise object which is asynchronously resolved with the web response object, or rejected with the web response object, where responseText contains error message. @see IWebResponse.
|
|
1257
|
-
|
|
1329
|
+
*/
|
|
1258
1330
|
public sendAsync(url: string): Promise<IWebResponse>;
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1331
|
+
/**
|
|
1332
|
+
* Set content body of http web request.
|
|
1333
|
+
* @param body The body content.
|
|
1334
|
+
* @param encoding The encoding (e.g. UTF-8, ASCII, Base64. Binary)
|
|
1335
|
+
*/
|
|
1336
|
+
public setBody(body: string, encoding: string);
|
|
1337
|
+
/**
|
|
1338
|
+
* Set Network credentials information.
|
|
1339
|
+
* @param userName The authentication user name.
|
|
1340
|
+
* @param password The authentication password.
|
|
1341
|
+
*/
|
|
1342
|
+
public setCredentials(userName: string, password: string);
|
|
1343
|
+
/**
|
|
1344
|
+
* Set encoding for content type of http web response
|
|
1345
|
+
* @param encoding The encoding (e.g. UTF-8, ASCII, Base64)
|
|
1346
|
+
*/
|
|
1347
|
+
public setResponseEncoding(encoding: string);
|
|
1276
1348
|
}
|
|
1277
1349
|
class AIVision {
|
|
1278
1350
|
/**
|
|
@@ -1300,7 +1372,7 @@ declare module MobileCRM.Services {
|
|
|
1300
1372
|
*/
|
|
1301
1373
|
recognizeSelectedPicture(success: (res: MobileCRM.Services.IAIVisionResult) => void, failed?: (error: string) => void, scope?: any);
|
|
1302
1374
|
}
|
|
1303
|
-
/** Represents the settings for AI image recognition service
|
|
1375
|
+
/** Represents the settings for AI image recognition service. */
|
|
1304
1376
|
class AIVisionSettings {
|
|
1305
1377
|
/** Gets or sets the model name. */
|
|
1306
1378
|
public modelName: string;
|
|
@@ -1321,11 +1393,11 @@ declare module MobileCRM.Services {
|
|
|
1321
1393
|
probability: string;
|
|
1322
1394
|
}
|
|
1323
1395
|
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1396
|
+
interface IWebResponse {
|
|
1397
|
+
responseCode: number;
|
|
1398
|
+
responseText: string;
|
|
1399
|
+
responseType: string;
|
|
1400
|
+
}
|
|
1329
1401
|
|
|
1330
1402
|
}
|
|
1331
1403
|
declare module MobileCRM.Services.AddressBookService {
|
|
@@ -1419,13 +1491,13 @@ declare module MobileCRM.UI {
|
|
|
1419
1491
|
value: MobileCRM.Reference | string;
|
|
1420
1492
|
}
|
|
1421
1493
|
|
|
1422
|
-
|
|
1423
|
-
|
|
1494
|
+
class _DetailView {
|
|
1495
|
+
items: Array<DetailViewItems.Item>;
|
|
1424
1496
|
getItemByName(name: string): MobileCRM.UI._DetailItem;
|
|
1425
|
-
|
|
1497
|
+
getItemIndex(name: string): number;
|
|
1426
1498
|
insertItem(item: MobileCRM.UI._DetailItem, index: number);
|
|
1427
|
-
|
|
1428
|
-
|
|
1499
|
+
insertItems(items: Array<MobileCRM.UI._DetailItem>, index: number);
|
|
1500
|
+
removeItem(index: number);
|
|
1429
1501
|
removeItems(indexes: Array<number>);
|
|
1430
1502
|
isDirty: boolean;
|
|
1431
1503
|
/**
|
|
@@ -1506,8 +1578,8 @@ declare module MobileCRM.UI {
|
|
|
1506
1578
|
canClose: boolean;
|
|
1507
1579
|
/** Gets the specific context object for onChange and onSave handlers. The onChange context contains single property 'changedItem' with the name of the changed detail item and the onSave context contains property 'errorMessage' which can be used to break the save process with certain error message.*/
|
|
1508
1580
|
context?: IFormSaveContext | IFormChangeContext | IFormDetailCollectionChangeContext;
|
|
1509
|
-
|
|
1510
|
-
|
|
1581
|
+
/** Gets the current view of entity list.*/
|
|
1582
|
+
currentView: string;
|
|
1511
1583
|
/** Gets the form controllers (map, web) as an array of { MobileCRM.UI._Controller } objects.*/
|
|
1512
1584
|
controllers: Array<_Controller>;
|
|
1513
1585
|
/** Gets the detailView controls as an array of { MobileCRM.UI._DetailView } objects.*/
|
|
@@ -1565,15 +1637,15 @@ declare module MobileCRM.UI {
|
|
|
1565
1637
|
* @param errorCallback The errorCallback which is called asynchronously in case of error.
|
|
1566
1638
|
* @param scope The scope for callback.
|
|
1567
1639
|
*/
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1640
|
+
selectTab(tabName: string, errorCallback?: (err: string) => void, scope?: any);
|
|
1641
|
+
/**
|
|
1642
|
+
* @since 8.0
|
|
1643
|
+
* Selects the form tab by its name using static method.
|
|
1644
|
+
* @param tabName The name of the tab.
|
|
1645
|
+
* @param errorCallback The errorCallback which is called asynchronously in case of error.
|
|
1646
|
+
* @param scope The scope for callback.
|
|
1647
|
+
*/
|
|
1648
|
+
public static selectTabEx(tabName: string, errorCallback?: (err: string) => void, scope?: any);
|
|
1577
1649
|
/**
|
|
1578
1650
|
* The name of the associated entity list tab.
|
|
1579
1651
|
* @param tabName The name of the associated entity list tab.
|
|
@@ -1603,14 +1675,14 @@ declare module MobileCRM.UI {
|
|
|
1603
1675
|
* A request object with single function 'resumePostSave'; which has to be called after all necessary operations completed.
|
|
1604
1676
|
*/
|
|
1605
1677
|
suspendPostSave(): IFormPostSaveHandler;
|
|
1606
|
-
|
|
1678
|
+
/**
|
|
1607
1679
|
* @since 9.1
|
|
1608
1680
|
* Reactivates inactive entity and reloads the form.
|
|
1609
1681
|
* @param statuscode Activation status code.
|
|
1610
1682
|
*/
|
|
1611
|
-
|
|
1683
|
+
reactivateEntity(statuscode: number);
|
|
1612
1684
|
|
|
1613
|
-
|
|
1685
|
+
/**
|
|
1614
1686
|
* Requests the managed EntityForm object.
|
|
1615
1687
|
* @description Method initiates an asynchronous request which either ends with calling the errorCallback or with calling the callback with Javascript version of EntityForm object. See { MobileCRM.Bridge.requestObject } for further details.
|
|
1616
1688
|
* @param callback The callback function that is called asynchronously with serialized EntityForm object as argument. Callback should return true to apply changed properties.
|
|
@@ -1647,7 +1719,7 @@ declare module MobileCRM.UI {
|
|
|
1647
1719
|
/**
|
|
1648
1720
|
* @since 11.2
|
|
1649
1721
|
* Binds or unbinds the handler for specific item change event on EntityForm.
|
|
1650
|
-
|
|
1722
|
+
* @param itemName The name of desired detail item (mostly logical name of the field).
|
|
1651
1723
|
* @param handler The handler function that has to be bound or unbound.
|
|
1652
1724
|
* @param bind Determines whether to bind or unbind the handler.
|
|
1653
1725
|
* @param scope The scope for callbacks.
|
|
@@ -1754,7 +1826,7 @@ declare module MobileCRM.UI {
|
|
|
1754
1826
|
errorMessage: string;
|
|
1755
1827
|
}
|
|
1756
1828
|
interface IFormChangeContext {
|
|
1757
|
-
|
|
1829
|
+
changedItem: string;
|
|
1758
1830
|
selectedView: string;
|
|
1759
1831
|
}
|
|
1760
1832
|
/** Represents context of change on entity form detail collection. */
|
|
@@ -1997,9 +2069,9 @@ declare module MobileCRM.UI {
|
|
|
1997
2069
|
*/
|
|
1998
2070
|
enum EntityListClickAction {
|
|
1999
2071
|
Text = 0,
|
|
2000
|
-
Image= 1,
|
|
2001
|
-
Button=2,
|
|
2002
|
-
InlineButton=3,
|
|
2072
|
+
Image = 1,
|
|
2073
|
+
Button = 2,
|
|
2074
|
+
InlineButton = 3,
|
|
2003
2075
|
Editable = 0x1000,
|
|
2004
2076
|
Clickable = 0x2000,
|
|
2005
2077
|
DirectEdit = 0x4000 | Editable,
|
|
@@ -2170,12 +2242,12 @@ declare module MobileCRM.UI {
|
|
|
2170
2242
|
/**
|
|
2171
2243
|
* @since 11.2
|
|
2172
2244
|
* Binds or unbinds the handler for specific question change event on QuestionnaireForm.
|
|
2173
|
-
|
|
2245
|
+
* @param questionName The name of desired question.
|
|
2174
2246
|
* @param handler The handler function that has to be bound or unbound.
|
|
2175
2247
|
* @param bind Determines whether to bind or unbind the handler.
|
|
2176
2248
|
* @param scope The scope for callbacks.
|
|
2177
2249
|
*/
|
|
2178
|
-
public static onAnswerChanged(questionName:string, handler: (questionnaireForm: QuestionnaireForm) => void, bind: boolean, scope?: any);
|
|
2250
|
+
public static onAnswerChanged(questionName: string, handler: (questionnaireForm: QuestionnaireForm) => void, bind: boolean, scope?: any);
|
|
2179
2251
|
/**
|
|
2180
2252
|
* Binds or unbinds the handler for onPostSave event on QuestionnaireForm.
|
|
2181
2253
|
* @param handler The handler function that has to be bound or unbound.
|
|
@@ -2337,8 +2409,7 @@ declare module MobileCRM.UI {
|
|
|
2337
2409
|
isVisible?: boolean;
|
|
2338
2410
|
}
|
|
2339
2411
|
|
|
2340
|
-
class HomeItem
|
|
2341
|
-
{
|
|
2412
|
+
class HomeItem {
|
|
2342
2413
|
name: string;
|
|
2343
2414
|
path: string;
|
|
2344
2415
|
title: string;
|
|
@@ -2829,10 +2900,10 @@ declare module MobileCRM.UI {
|
|
|
2829
2900
|
* @param errorCallback The errorCallback which is called in case of error.
|
|
2830
2901
|
*/
|
|
2831
2902
|
static setDate(date: Date, callback?: () => void, errorCallback?: (err: string) => void);
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2903
|
+
static setMode(mode, callback, errorCallback);
|
|
2904
|
+
}
|
|
2905
|
+
/** Represents the UI component hosting the calendar. */
|
|
2906
|
+
interface AppointmentView {
|
|
2836
2907
|
/** Gets or sets whether the view is visible. */
|
|
2837
2908
|
isVisible: boolean;
|
|
2838
2909
|
/** Gets the name of view. */
|
|
@@ -2840,7 +2911,7 @@ declare module MobileCRM.UI {
|
|
|
2840
2911
|
/** Gets a view mode @see TourplanForm.TourplanViewMode */
|
|
2841
2912
|
mode: TourplanViewMode;
|
|
2842
2913
|
/** Gets the current date of displayed view. */
|
|
2843
|
-
|
|
2914
|
+
currentDate: Date;
|
|
2844
2915
|
}
|
|
2845
2916
|
/** TourplanForm.onCreateNew context interface. */
|
|
2846
2917
|
interface ITourplanCreateNewContext {
|
package/src/JSBridge.js
CHANGED
|
@@ -4024,7 +4024,7 @@
|
|
|
4024
4024
|
MobileCRM.MobileReport.runReportAsync = function (fetch, reportXML, reportFormat, isExportOnly, isOnline, outputFile) {
|
|
4025
4025
|
/// <summary>[v9.1] Executes the mobile reporting request which produces the mobile report document of given format.</summary>
|
|
4026
4026
|
/// <param name="fetch" type="String">The fetch XML defining the entity (entities) query used as report input.</param>
|
|
4027
|
-
/// <param name="reportXML" type="String">The mobile report XML definition which can be loaded from the
|
|
4027
|
+
/// <param name="reportXML" type="String">The mobile report XML definition which can be loaded from the resco_mobilereport entity or constructed dynamically. Ignored if IsExportOnly parameter is true.</param>
|
|
4028
4028
|
/// <param name="reportFormat" type="String">Report format: Pdf (default), Html, Excel, Text.</param>
|
|
4029
4029
|
/// <param name="isExportOnly" type="Boolean">If true then ReportXml is optional. The default is false.</param>
|
|
4030
4030
|
/// <param name="isOnline" type="Boolean">Indicates whether the report should be run against the online data or local database. The default is current application mode.</param>
|
|
@@ -4034,19 +4034,15 @@
|
|
|
4034
4034
|
MobileCRM.MobileReport.runReport(fetch, reportXML, reportFormat, isExportOnly, isOnline, outputFile, resolve, function (err) { reject(new Error(err)); });
|
|
4035
4035
|
});
|
|
4036
4036
|
};
|
|
4037
|
-
MobileCRM.MobileReport.showForm = function (
|
|
4037
|
+
MobileCRM.MobileReport.showForm = function (report, source, fetchXml, failed, scope) {
|
|
4038
4038
|
/// <summary>[v10.1] 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>
|
|
4039
4039
|
/// <remarks>If both types of source are passed, user can select which one to use.</remarks>
|
|
4040
|
-
/// <param name="
|
|
4040
|
+
/// <param name="report" type="MobileCRM.Reference">Optional reference to the resco_mobilereport entity that will be pre-selected.</param>
|
|
4041
4041
|
/// <param name="source" type="MobileCRM.Reference[]">The list of entity references used as report input.</param>
|
|
4042
4042
|
/// <param name="fetchXML" type="String">The fetch XML defining the entity (entities) query used as report input.</param>
|
|
4043
4043
|
/// <param name="failed" type="function(errorMsg)">A callback which is called in case of error.</param>
|
|
4044
4044
|
/// <param name="scope" type="Object">The scope for callbacks.</param>
|
|
4045
|
-
|
|
4046
|
-
if (typeof (entity) == "string")
|
|
4047
|
-
entity = new MobileCRM.Reference(entity, null, null);
|
|
4048
|
-
|
|
4049
|
-
var params = { fetchXml: fetchXml, entityName: entity.entityName, entity: entity, source: source };
|
|
4045
|
+
var params = { fetchXml: fetchXml, report: report, source: source };
|
|
4050
4046
|
MobileCRM.bridge.command("showMobileReportForm", JSON.stringify(params), null, failed, scope);
|
|
4051
4047
|
};
|
|
4052
4048
|
// MobileCRM.UI.Questionnaire
|