Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

outlook-win32.debug-vsdoc.js 76KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663
  1. /* Version: 16.0.3825.1000 */
  2. /*
  3. Copyright (c) Microsoft Corporation. All rights reserved.
  4. */
  5. /*
  6. Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
  7. */
  8. Office._appMode = {
  9. Read: 1,
  10. Compose: 2,
  11. ReadCompose: 3
  12. }
  13. Office._cast_item = function () {
  14. this.toAppointmentCompose = function (item) {
  15. return new Office._$MailboxAppointment(Office._appMode.Compose);
  16. }
  17. this.toAppointmentRead = function (item) {
  18. return new Office._$MailboxAppointment(Office._appMode.Read);
  19. }
  20. this.toAppointment = function (item) {
  21. return new Office._$MailboxAppointment(Office._appMode.ReadCompose);
  22. }
  23. this.toMessageCompose = function (item) {
  24. return new Office._$MailboxMessage(Office._appMode.Compose);
  25. }
  26. this.toMessageRead = function (item) {
  27. return new Office._$MailboxMessage(Office._appMode.Read);
  28. }
  29. this.toMessage = function (item) {
  30. return new Office._$MailboxMessage(Office._appMode.ReadCompose);
  31. }
  32. this.toItemCompose = function (item) {
  33. return new Office._$MailboxItem(Office._appMode.Compose);
  34. }
  35. this.toItemRead = function (item) {
  36. return new Office._$MailboxItem(Office._appMode.Read);
  37. }
  38. };
  39. Office._context_mailbox_item = function () {
  40. Office._$MailboxItem_helper(this, Office._appMode.ReadCompose);
  41. Office._$MailboxAppointment_helper(this, Office._appMode.ReadCompose);
  42. Office._$MailboxMessage_helper(this, Office._appMode.ReadCompose);
  43. };
  44. Office._$MailboxItem = function (appMode) {
  45. Office._$MailboxItem_helper(this, appMode);
  46. Office._$MailboxAppointment_helper(this, appMode);
  47. Office._$MailboxMessage_helper(this, appMode);
  48. }
  49. Office._$MailboxAppointment = function (appMode) {
  50. Office._$MailboxItem_helper(this, appMode);
  51. Office._$MailboxAppointment_helper(this, appMode);
  52. }
  53. Office._$MailboxMessage = function (appMode) {
  54. Office._$MailboxItem_helper(this, appMode);
  55. Office._$MailboxMessage_helper(this, appMode);
  56. }
  57. Office._$MailboxItem_helper = function (obj, appMode) {
  58. // Field documentation ------------------------------------------
  59. // Attachments property.
  60. attachmentsDoc = {
  61. attachments_read: {
  62. conditions: {
  63. hosts: ["outlook; not outlookcompose"]
  64. },
  65. name: "attachments",
  66. annotate: {
  67. ///<field name="attachments" type='AttachmentDetails[]'>Gets a list of attachments to the item.</field>
  68. attachments: undefined
  69. },
  70. contents: function () {
  71. return new Array(new Office._context_mailbox_item_attachmentDetails())
  72. }
  73. },
  74. attachments_read_compose: {
  75. conditions: {
  76. hosts: ["outlook; outlookcompose"]
  77. },
  78. name: "attachments",
  79. annotate: {
  80. ///<field name="attachments">Gets a list of attachments to the item. In compose mode the attachments property is undefined. In read mode it returns a list of attachments to the item.</field>
  81. attachments: undefined
  82. },
  83. contents: function () {
  84. return new Array(new Office._context_mailbox_item_attachmentDetails())
  85. }
  86. }
  87. }
  88. bodyDoc = {
  89. body_compose: {
  90. conditions: {
  91. hosts: ["not outlook, outlookcompose"]
  92. },
  93. name: "body",
  94. annotate: {
  95. /// <field name="body" type='Body'>Provides methods to get and set the body of the item.</field>
  96. body: undefined
  97. },
  98. contents: function () {
  99. return new Office._context_mailbox_item_body()
  100. }
  101. },
  102. body_read_compose: {
  103. conditions: {
  104. hosts: ["outlook, outlookcompose"]
  105. },
  106. name: "body",
  107. annotate: {
  108. /// <field name="body"> Gets the content of an item. In read mode, the body property is undefined. In compose mode it returns a Body object.</field>
  109. body: undefined
  110. },
  111. contents: function () {
  112. return new Office._context_mailbox_item_body()
  113. }
  114. }
  115. }
  116. // dateTimeCreated property.
  117. dateTimeCreatedDoc = {
  118. dateTimeCreated_read: {
  119. conditions: {
  120. hosts: ["outlook, not outlookcompose"]
  121. },
  122. name: "dateTimeCreated",
  123. annotate: {
  124. ///<field name="dateTimeCreated" type='Date'>Gets the date and time that the item was created.</field>
  125. dateTimeCreated: undefined
  126. },
  127. contents: function () {
  128. return new Date()
  129. }
  130. },
  131. dateTimeCreated_read_compose: {
  132. conditions: {
  133. hosts: ["outlook, outlookcompose"]
  134. },
  135. name: "dateTimeCreated",
  136. annotate: {
  137. ///<field name="dateTimeCreated" type='Date'>Gets the date and time that the item was created. In compose mode the dateTimeCreated property is undefined.</field>
  138. dateTimeCreated: undefined
  139. },
  140. contents: function () {
  141. return new Date()
  142. }
  143. }
  144. }
  145. // dateTimeModified property.
  146. dateTimeModifiedDoc = {
  147. dateTimeModified_read: {
  148. conditions: {
  149. hosts: ["outlook, not outlookcompose"]
  150. },
  151. name: "dateTimeModified",
  152. annotate: {
  153. ///<field name="dateTimeModified" type='Date'>Gets the date and time that the item was last modified.</field>
  154. dateTimeModified: undefined
  155. },
  156. contents: function () {
  157. return new Date()
  158. }
  159. },
  160. dateTimeModified_read_compose: {
  161. conditions: {
  162. hosts: ["outlook, outlookcompose"]
  163. },
  164. name: "dateTimeModified",
  165. annotate: {
  166. ///<field name="dateTimeModified" type='Date'>Gets the date and time that the item was last modified. In compose mode the dateTimeModified property is undefined.</field></field>
  167. dateTimeModified: undefined
  168. },
  169. contents: function () {
  170. return new Date()
  171. }
  172. }
  173. }
  174. // itemClass property.
  175. itemClassDoc = {
  176. itemClass_read: {
  177. conditions: {
  178. hosts: ["outlook, not outlookcompose"]
  179. },
  180. name: "itemClass",
  181. annotate: {
  182. ///<field name="itemClass" type='String'>Gets the item class of the item.</field>
  183. itemClass: undefined
  184. }
  185. },
  186. itemClass_read_compose: {
  187. conditions: {
  188. hosts: ["outlook, outlookcompose"]
  189. },
  190. name: "itemClass",
  191. annotate: {
  192. ///<field name="itemClass" type='String'>Gets the item class of the item. In compose mode the itemClass property is undefined.</field>
  193. itemClass: undefined
  194. }
  195. }
  196. }
  197. // itemId property
  198. // This property is in all modes, so it gets processed in place rather than
  199. // after the extra documentation is removed.
  200. Office._processContents(obj, {
  201. itemIdDoc: {
  202. conditions: {
  203. hosts: ["outlook", "outlookcompose"]
  204. },
  205. name: "itemId",
  206. annotate: {
  207. ///<field name="itemId" type='String'>Gets the Exchange Web Services (EWS) item identifier of an item.</field>
  208. itemId: undefined
  209. }
  210. }
  211. })
  212. // itemType property.
  213. Office._processContents(obj, {
  214. itemTypeDoc: {
  215. conditions: {
  216. hosts: ["outlook", "outlookcompose"]
  217. },
  218. name: "itemType",
  219. annotate: {
  220. ///<field name="itemType" type='Office.MailboxEnums.ItemType'>Gets the type of an item that an instance represents.</field>
  221. itemType: undefined
  222. }
  223. }
  224. })
  225. //obj.normalizedSubject = {};
  226. normalizedSubjectDoc = {
  227. normalizedSubject_read: {
  228. conditions: {
  229. hosts: ["outlook, not outlookcompose"]
  230. },
  231. name: "normalizedSubject",
  232. annotate: {
  233. ///<field name="normalizedSubject" type='String'>Gets the subject of the item, with standard prefixes removed.</field>
  234. normalizedSubject: undefined
  235. }
  236. },
  237. normalizedSubject_read_compose: {
  238. conditions: {
  239. hosts: ["outlook, outlookcompose"]
  240. },
  241. name: "normalizedSubject",
  242. annotate: {
  243. ///<field name="normalizedSubject" type='String'>Gets the subject of the item, with standard prefixes removed. In compose mode, the normalizedSubject property is undefined.</field>
  244. normalizedSubject: undefined
  245. }
  246. }
  247. }
  248. subjectDoc = {
  249. subject_compose: {
  250. conditions: {
  251. hosts: ["not outlook, outlookcompose"]
  252. },
  253. name: "subject",
  254. annotate: {
  255. /// <field name="subject" type='Subject'>Provides methods to get and set the item subject.</field>
  256. subject: undefined
  257. },
  258. contents: function () {
  259. return new Office._context_mailbox_item_subject()
  260. }
  261. },
  262. subject_read: {
  263. conditions: {
  264. hosts: ["outlook, not outlookcompose"]
  265. },
  266. name: "subject",
  267. annotate: {
  268. /// <field name="subject" type='String'>Gets the subject of the item.</field>
  269. subject: undefined
  270. }
  271. },
  272. subject_read_compose: {
  273. conditions: {
  274. hosts: ["outlook, outlookcompose"]
  275. },
  276. name: "subject",
  277. annotate: {
  278. /// <field name="subject"> Gets the subject of an item. In compose mode the Subject property returns a Subject object. In read mode, it returns a string.</field>
  279. subject: undefined
  280. }
  281. }
  282. }
  283. if (appMode == Office._appMode.Compose) {
  284. delete attachmentsDoc["attachments_read"];
  285. delete attachmentsDoc["attachments_read_compose"];
  286. delete bodyDoc.body_compose["conditions"];
  287. delete bodyDoc["body_read_compose"];
  288. delete dateTimeCreatedDoc["dateTimeCreated_read"];
  289. delete dateTimeCreatedDoc["dateTimeCreated_read_compose"];
  290. delete dateTimeModifiedDoc["dateTimeModified_read"];
  291. delete dateTimeModifiedDoc["dateTimeModified_read_compose"];
  292. delete itemClassDoc["itemClass_read"];
  293. delete itemClassDoc["itemClass_read_compose"];
  294. delete normalizedSubjectDoc["normalizedSubject_read"];
  295. delete normalizedSubjectDoc["normalizedSubject_read_compose"];
  296. delete subjectDoc.subject_compose["conditions"];
  297. delete subjectDoc["subject_read"];
  298. delete subjectDoc["subject_read_compose"];
  299. }
  300. else if (appMode == Office._appMode.Read) {
  301. delete attachmentsDoc.attachments_read["conditions"];
  302. delete attachmentsDoc["attachments_read_compose"];
  303. delete bodyDoc["body_compose"];
  304. delete bodyDoc["body_read_compose"];
  305. delete dateTimeCreatedDoc.dateTimeCreated_read["conditions"];
  306. delete dateTimeCreatedDoc["dateTimeCreated_read_compose"];
  307. delete dateTimeModifiedDoc.dateTimeModified_read["conditions"];
  308. delete dateTimeModifiedDoc["dateTimeModified_read_compose"];
  309. delete itemClassDoc.itemClass_read["conditions"];
  310. delete itemClassDoc["itemClass_read_compose"];
  311. delete normalizedSubjectDoc.normalizedSubject_read["conditions"];
  312. delete normalizedSubjectDoc["normalizedSubject_read_compose"];
  313. delete subjectDoc.subject_read["conditions"];
  314. delete subjectDoc["subject_compose"];
  315. delete subjectDoc["subject_read_compose"];
  316. }
  317. else if (appMode == Office._appMode.ReadCompose) {
  318. delete attachmentsDoc["attachments_read"];
  319. delete attachmentsDoc.attachments_read_compose["conditions"];
  320. delete bodyDoc["body_compose"];
  321. delete bodyDoc.body_read_compose["conditions"];
  322. delete dateTimeCreatedDoc["dateTimeCreated_read"];
  323. delete dateTimeCreatedDoc.dateTimeCreated_read_compose["conditions"];
  324. delete dateTimeModifiedDoc["dateTimeModified_read"];
  325. delete dateTimeModifiedDoc.dateTimeModified_read_compose["conditions"];
  326. delete itemClassDoc["itemClass_read"];
  327. delete itemClassDoc.itemClass_read_compose["conditions"];
  328. delete normalizedSubjectDoc["normalizedSubject_read"];
  329. delete normalizedSubjectDoc.normalizedSubject_read_compose["conditions"];
  330. delete subjectDoc["subject_compose"];
  331. delete subjectDoc["subject_read"];
  332. delete subjectDoc.subject_read_compose["conditions"];
  333. }
  334. Office._processContents(obj, attachmentsDoc);
  335. Office._processContents(obj, bodyDoc);
  336. Office._processContents(obj, dateTimeCreatedDoc);
  337. Office._processContents(obj, dateTimeModifiedDoc);
  338. Office._processContents(obj, itemClassDoc);
  339. Office._processContents(obj, normalizedSubjectDoc);
  340. Office._processContents(obj, subjectDoc);
  341. if (appMode == Office._appMode.Compose || appMode == Office._appMode.ReadCompose) {
  342. obj.addFileAttachmentAsync = function (uri, attachmentName, options, callback) {
  343. ///<summary>Attach a file to an item.</summary>
  344. ///<param name="uri" type="String">A URI that provides the location of the file. Required.</param>
  345. ///<param name="attachmentName" type="String">The name to display while the attachment is loading. The name is limited to 256 characters. Required.</param>
  346. ///<param name="options" type="Object" optional="true">An optional parameters or state data passed to the callback method. Optional.</param>
  347. ///<param name="callback" type="function" optional="true">The method to invoke when the attachment finishes uploading. Optional.</param>
  348. var result = new Office._Mailbox_AsyncResult("attachmentAsync");
  349. if (arguments.length == 3) { callback = options; }
  350. callback(result);
  351. };
  352. obj.addItemAttachmentAsync = function (itemId, attachmentName, options, callback) {
  353. ///<summary>Attach an email item to an item.</summary>
  354. ///<param name="itemId" type="string">The Exchange identifier of the item to attach. The maximum length is 100 characters.</param>
  355. ///<param name="attachmentName" type="string">The name to display while the attachment is loading. The name is limited to 256 characters. </param>
  356. ///<param name="options" type="Object" optional="true">An optional parameters or state data passed to the callback method. </param>
  357. ///<param name="callback" type="function" optional="true">The method to invoke when the attachment finishes uploading. </param>
  358. var result = new Office._Mailbox_AsyncResult("attachmentAsync");
  359. if (arguments.length == 3) { callback = options; }
  360. callback(result);
  361. };
  362. obj.removeAttachmentAsync = function (attachmentIndex, options, callback) {
  363. ///<summary>Removes a file or item that was previously attached to an item.</summary>
  364. ///<param name="attachmentIndex" type="String">The index of the attachment to remove.</param>
  365. ///<param name="options" type="Object" optional="true">An optional parameters or state data passed to the callback method. </param>
  366. ///<param name="callback" type="function" optional="true">The method to invoke when the attachment is removed. </param>
  367. var result = new Office._Mailbox_AsyncResult("removeAttachmentAsync");
  368. if (arguments.length == 2) { callback = options; }
  369. callback(result);
  370. };
  371. Office._processItem(obj, {
  372. conditions: {
  373. reqs: ["set Mailbox GE 1.2"]
  374. },
  375. metaOnly: true,
  376. contents: {
  377. getSelectedDataAsync: {
  378. value: function (coercionType, options, callback) {
  379. ///<summary>Gets the selected data in the subject or body of the current item; or null if not data is selected.</summary>
  380. ///<param name="coercionType" type="Office.CoercionType">One of the CoercionType enumeration values indicating whether the selected content is HTML or plain text.</param>
  381. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method.</param>
  382. ///<param name="callback" type="function">The method to call when the asynchronous method is complete.</param>
  383. var result = new Office._Mailbox_AsyncResult("getSelectedDataAsync");
  384. if (arguments.length == 2) { callback = options; }
  385. callback(result);
  386. }
  387. },
  388. setSelectedDataAsync: {
  389. value: function (data, options, callback) {
  390. ///<summary>Sets the specified data in the subject or body of the current item.</summary>
  391. ///<param name="data" type='String'>The text to insert into the subject or body of the item.</param>
  392. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method.</param>
  393. ///<param name="callback" type="function">The method to call when the asynchronous method is complete.</param>
  394. var result = new Office._Mailbox_AsyncResult();
  395. if (arguments.length == 2) { callback = options; }
  396. callback(result);
  397. }
  398. }
  399. }
  400. });
  401. }
  402. if (appMode == Office._appMode.Read || appMode == Office._appMode.ReadCompose) {
  403. obj.displayReplyAllForm = function (htmlBody) {
  404. ///<summary>Display a form for creating an email reply to all recipients.</summary>
  405. ///<param name="htmlBody" type="String">The HTML contents of the email reply. 32 KB limit.</param>
  406. };
  407. obj.displayReplyForm = function (htmlBody) {
  408. ///<summary>Display a form for creating an email reply to the sender.</summary>
  409. ///<param name="htmlBody" type="String">The HTML contents of the email reply. 32 KB limit</param>
  410. };
  411. Office._processItem(obj, {
  412. conditions: {
  413. reqs: ["set Mailbox GE 1.2"]
  414. },
  415. metaOnly: true,
  416. contents: {
  417. displayReplyAllForm: {
  418. value: function (replyForm) {
  419. ///<summary>Display a form for creating an email reply to all recipients.</summary>
  420. ///<param name="replyForm" type='Object'>Syntax example: {
  421. ///&#10; &#34;body&#34;: &#34;...&#34; ,
  422. ///&#10; &#34;attachments&#34;: [
  423. ///&#10; {
  424. ///&#10; &#34;type&#34;:&#34;item&#34;,
  425. ///&#10; &#34;id&#34;:&#34;...&#34;,
  426. ///&#10; },
  427. ///&#10; {
  428. ///&#10; &#34;type&#34;:&#34;file&#34;,
  429. ///&#10; &#34;name&#34;:&#34;...&#34;,
  430. ///&#10; &#34;url&#34;:&#34;...&#34;,
  431. ///&#10; }
  432. ///&#10; ]}
  433. ///&#10; body: HTML contents of the email reply. Optional, 32 KB limit.
  434. ///&#10; attachments: An array of JSON objects that are either file or item attachments. Optional.
  435. ///&#10; attachments:type: &#34;item&#34; to indicate that the attachment is an Exchange item, or &#34;file&#34; to indicate that the attachment is a file.
  436. ///&#10; attachments:id: The EWS identifier of the item to attach. 100 character limit.
  437. ///&#10; attachments:file: The file name of the file to attach. 255 character limit.
  438. ///&#10; attachments:url: The URL of the location where the file bytes are located. 2048 character limit.
  439. ///&#10; -or-
  440. ///&#10; The HTML contents of the email reply. 32 KB limit.</param>
  441. }
  442. },
  443. displayReplyForm: {
  444. value: function (replyForm) {
  445. ///<summary>Display a form for creating an email reply to the sender.</summary>
  446. ///<param name="replyForm" type='Object'>Syntax example: {
  447. ///&#10; &#34;body&#34;: &#34;...&#34; ,
  448. ///&#10; &#34;attachments&#34;: [
  449. ///&#10; {
  450. ///&#10; &#34;type&#34;:&#34;item&#34;,
  451. ///&#10; &#34;id&#34;:&#34;...&#34;,
  452. ///&#10; },
  453. ///&#10; {
  454. ///&#10; &#34;type&#34;:&#34;file&#34;,
  455. ///&#10; &#34;name&#34;:&#34;...&#34;,
  456. ///&#10; &#34;url&#34;:&#34;...&#34;,
  457. ///&#10; }
  458. ///&#10; ]}
  459. ///&#10; body: HTML contents of the email reply. Optional, 32 KB limit.
  460. ///&#10; attachments: An array of JSON objects that are either file or item attachments. Optional.
  461. ///&#10; attachments:type: &#34;item&#34; to indicate that the attachment is an Exchange item, or &#34;file&#34; to indicate that the attachment is a file.
  462. ///&#10; attachments:id: The EWS identifier of the item to attach. 100 character limit.
  463. ///&#10; attachments:file: The file name of the file to attach. 255 character limit.
  464. ///&#10; attachments:url: The URL of the location where the file bytes are located. 2048 character limit.
  465. ///&#10; -or-
  466. ///&#10; The HTML contents of the email reply. 32 KB limit.</param>
  467. }
  468. }
  469. }
  470. });
  471. obj.getEntities = function () {
  472. ///<summary>Gets an array of entities found in an item.</summary>
  473. return (new Office._context_mailbox_item_entities());
  474. };
  475. obj.getEntitiesByType = function (entityType) {
  476. ///<summary>Gets an array of entities of the specified entity type found in an item.</summary>
  477. ///<param name="entityType" type="Office.MailboxEnums.EntityType">One of the EntityType enumeration values.</param>
  478. if (entityType == Office.MailboxEnums.EntityType.Address) {
  479. return (new Array(""));
  480. }
  481. if (entityType == Office.MailboxEnums.EntityType.Contact) {
  482. return (new Array(new Office._context_mailbox_item_contact()));
  483. }
  484. if (entityType == Office.MailboxEnums.EntityType.EmailAddress) {
  485. return (new Array(""));
  486. }
  487. if (entityType == Office.MailboxEnums.EntityType.MeetingSuggestion) {
  488. return (new Array(new Office._context_mailbox_item_meetingSuggestion()));
  489. }
  490. if (entityType == Office.MailboxEnums.EntityType.PhoneNumber) {
  491. return (new Array(new Office._context_mailbox_item_phoneNumber()));
  492. }
  493. if (entityType == Office.MailboxEnums.EntityType.TaskSuggestion) {
  494. return (new Array(new Office._context_mailbox_item_taskSuggestion()));
  495. }
  496. if (entityType == Office.MailboxEnums.EntityType.Url) {
  497. return (new Array(""));
  498. }
  499. };
  500. obj.getFilteredEntitiesByName = function (name) {
  501. ///<summary>Returns well-known enitities that pass the named filter defined in the manifest XML file.</summary>
  502. ///<param name="name" type="String">The name of the filter defined in the manifest XML file.</param>
  503. return (new Array(Office._context_mailbox_item_entities()));
  504. };
  505. obj.getRegExMatches = function () {
  506. ///<summary>Returns string values that match the regular expressions defined in the manifest XML file.</summary>
  507. return (new Array(""));
  508. };
  509. obj.getRegExMatchesByName = function (name) {
  510. ///<summary>Returns string values that match the named regular expression defined in the manifest XML file.</summary>
  511. ///<param name="name" type="String">The name of the regular expression defined in the manifest XML file.</param>
  512. return (new Array(""));
  513. };
  514. }
  515. obj.loadCustomPropertiesAsync = function (callback, userContext) {
  516. ///<summary>Asynchronously loads custom properties that are specific to the item and a mail app for Outlook.</summary>
  517. ///<param name="callback" type="Function">The method to call when the asynchronous load is complete.</param>
  518. ///<param name="userContext" type="Object" optional="true">Any state data that is passed to the asynchronous method.</param>
  519. var result = new Office._Mailbox_AsyncResult("loadCustomPropertiesAsync");
  520. callback(result);
  521. };
  522. };
  523. Office._$MailboxAppointment_helper = function (obj, appMode) {
  524. // End property.
  525. endDoc = {
  526. end_compose: {
  527. conditions: {
  528. hosts: ["not outlook; outlookcompose"]
  529. },
  530. name: "end",
  531. annotate: {
  532. /// <field name="end" type='Time'>Provides methods to get and set the end time of an appointment.</field>
  533. end: undefined
  534. },
  535. contents: function () {
  536. return new Office._context_mailbox_item_time();
  537. }
  538. },
  539. end_read: {
  540. conditions: {
  541. hosts: ["outlook; not outlookcompose"]
  542. },
  543. name: "end",
  544. annotate: {
  545. ///<field name="end" type='Date'>Gets the date and time that the appointment is to end.</field>
  546. end: undefined
  547. },
  548. contents: function () {
  549. return new Date();
  550. }
  551. },
  552. end_read_compose: {
  553. conditions: {
  554. hosts: ["outlook; outlookcompose"]
  555. },
  556. name: "end",
  557. annotate: {
  558. /// <field name="end">Gets the date and time that the appointment is to end. In read mode, returns Date object. In compose mode, returns a Time object.</field>
  559. end: undefined
  560. }
  561. }
  562. }
  563. // Location property.
  564. locationDoc = {
  565. location_compose: {
  566. conditions: {
  567. hosts: ["not outlook, outlookcompose"]
  568. },
  569. name: "location",
  570. annotate: {
  571. /// <field name="location" type='Location'>Provides methods to get and set the location of an appointment.</field>
  572. location: undefined
  573. },
  574. contents: function () {
  575. return new Office._context_mailbox_item_location()
  576. }
  577. },
  578. location_read: {
  579. conditions: {
  580. hosts: ["not outlook, outlookcompose"]
  581. },
  582. name: "location",
  583. annotate: {
  584. ///<field name="location" type='String'>Gets the location of an appointment.</field>
  585. location: undefined
  586. }
  587. },
  588. location_read_compose: {
  589. conditions: {
  590. hosts: ["outlook, outlookcompose"]
  591. },
  592. name: "location",
  593. annotate: {
  594. /// <field name="location"> Gets the location of an appointment. In read mode, returns a string. In compose mode returns a Location object.</field>
  595. location: undefined
  596. }
  597. }
  598. }
  599. // Optional attendees property.
  600. optionalAttendeesDoc = {
  601. optionalAttendees_compose: {
  602. conditions: {
  603. hosts: ["not outlook; outlookcompose"]
  604. },
  605. name: "optionalAttendees",
  606. annotate: {
  607. /// <field name="optionalAttendees" type='Recipients'>Provides methods to get and set the optional attendees of an appointment.</field>
  608. optionalAttendees: undefined
  609. },
  610. contents: function () {
  611. return new Office._context_mailbox_item_recipients();
  612. }
  613. },
  614. optionalAttendees_read: {
  615. conditions: {
  616. hosts: ["outlook; not outlookcompose"]
  617. },
  618. name: "optionalAttendees",
  619. annotate: {
  620. ///<field name="optionalAttendees" type='EmailAddressDetails[]'>Gets a list of email addresses for optional attendees of an appointment.</field>
  621. optionalAttendees: undefined
  622. },
  623. contents: function () {
  624. return new Array(new Office._context_mailbox_item_emailAddressDetails())
  625. }
  626. },
  627. optionalAttendees_read_compose: {
  628. conditions: {
  629. hosts: ["outlook; outlookcompose"]
  630. },
  631. name: "optionalAttendees",
  632. annotate: {
  633. /// <field name="optionalAttendees">Gets a list of email addresses for optional attendees of an appointment. In read mode, returns an array of EmailAddressDetails objects. In compose mode, returns a Recipients object.</field>
  634. optionalAttendees: undefined
  635. }
  636. }
  637. }
  638. // Organizer property.
  639. organizerDoc = {
  640. organizer_read: {
  641. conditions: {
  642. hosts: ["outlook, not outlookcompose"]
  643. },
  644. name: "organizer",
  645. annotate: {
  646. ///<field name="organizer" type="EmailAddressDetails">Gets the email address of the meeting organizer for the specified meeting.</field>
  647. organizer: undefined
  648. },
  649. contents: function () {
  650. return new Office._context_mailbox_item_emailAddressDetails()
  651. }
  652. },
  653. organizer_read_compose: {
  654. conditions: {
  655. hosts: ["outlook, outlookcompose"]
  656. },
  657. name: "organizer",
  658. annotate: {
  659. ///<field name="organizer" type="EmailAddressDetails">Gets the email address of the meeting organizer for the specified meeting. In compose mode, the organizer property is undefined.</field>
  660. organizer: undefined
  661. },
  662. contents: function () {
  663. return new Office._context_mailbox_item_emailAddressDetails()
  664. }
  665. }
  666. }
  667. // Required attendees
  668. requiredAttendeesDoc = {
  669. requiredAttendees_compose: {
  670. conditions: {
  671. hosts: ["not outlook, outlookcompose"]
  672. },
  673. name: "requiredAttendees",
  674. annotate: {
  675. /// <field name="requiredAttendees" type='Recipients'>Provides methods to get and set the required attendees of an appointment.</field>
  676. requiredAttendees: undefined
  677. },
  678. contents: function () {
  679. return new Office._context_mailbox_item_recipients();
  680. }
  681. },
  682. requiredAttendees_read: {
  683. conditions: {
  684. hosts: ["outlook; not outlookcompose"]
  685. },
  686. name: "requiredAttendees",
  687. annotate: {
  688. /// <field name="requiredAttendees" type='EmailAddressDetails[]'>Gets a list of email addresses for required attendees of an appointment.</field>
  689. requiredAttendees: undefined
  690. },
  691. contents: function () {
  692. return new Array(new Office._context_mailbox_item_emailAddressDetails())
  693. }
  694. },
  695. requiredAttendees_read_compose: {
  696. conditions: {
  697. hosts: ["outlook; outlookcompose"]
  698. },
  699. name: "requiredAttendees",
  700. annotate: {
  701. /// <field name="optionalAttendees">Gets a list of email addresses for required attendees of an appointment. In read mode, returns an array of EmailAddressDetails objects. In compose mode, returns a Recipients object.</field>
  702. requiredAttendees: undefined
  703. }
  704. }
  705. }
  706. // Resources property.
  707. resourcesDoc = {
  708. resources_read: {
  709. conditions: {
  710. hosts: ["outlook; not outlookcompose"]
  711. },
  712. name: "resources",
  713. annotate: {
  714. /// <field name="resources" type='EmailAddressDetails[]'>Gets the resources required for an appointment.</field>
  715. resources: undefined
  716. },
  717. contents: function () {
  718. return new Array(new Office._context_mailbox_item_emailAddressDetails())
  719. }
  720. },
  721. resources_read_compose: {
  722. conditions: {
  723. hosts: ["outlook; outlookcompose"]
  724. },
  725. name: "resources",
  726. annotate: {
  727. /// <field name="resources">Gets the resources required for an appointment. In read mode, returns an array of EmailAddressDetails objects. In compose mode, the resources property is undefined.</field>
  728. resources: undefined
  729. }
  730. }
  731. }
  732. // Start property
  733. startDoc = {
  734. start_compose: {
  735. conditions: {
  736. hosts: ["not outlook; outlookcompose"]
  737. },
  738. name: "start",
  739. annotate: {
  740. /// <field name="start" type='Time'>Provides methods to get and set the start time for the appointment.</field>
  741. start: undefined
  742. },
  743. contents: function () {
  744. return new Office._context_mailbox_item_time();
  745. }
  746. },
  747. start_read: {
  748. conditions: {
  749. hosts: ["outlook; not outlookcompose"]
  750. },
  751. name: "start",
  752. annotate: {
  753. ///<field name="start" type='Date'>Gets the date and time that the appointment is to begin.</field>
  754. start: undefined
  755. },
  756. contents: function () {
  757. return new Date();
  758. }
  759. },
  760. start_read_compose: {
  761. conditions: {
  762. hosts: ["outlook; outlookcompose"]
  763. },
  764. name: "start",
  765. annotate: {
  766. /// <field name="start">Gets the date and time that the appointment is to begin. In read mode, returns Date object. In compose mode, returns a Time object.</field>
  767. start: undefined
  768. }
  769. }
  770. }
  771. if (appMode == Office._appMode.Compose) {
  772. delete endDoc.end_compose["conditions"];
  773. delete endDoc["end_read"];
  774. delete endDoc["end_read_compose"];
  775. delete locationDoc.location_compose["conditions"];
  776. delete locationDoc["location_read"];
  777. delete locationDoc["location_read_compose"];
  778. delete optionalAttendeesDoc.optionalAttendees_compose["conditions"];
  779. delete optionalAttendeesDoc["optionalAttendees_read"];
  780. delete optionalAttendeesDoc["optionalAttendees_read_compose"];
  781. delete organizerDoc["organizer_read"];
  782. delete organizerDoc["organizer_read_compose"];
  783. delete requiredAttendeesDoc.requiredAttendees_compose["conditions"];
  784. delete requiredAttendeesDoc["requiredAttendees_read"];
  785. delete requiredAttendeesDoc["requiredAttendees_read_compose"];
  786. delete resourcesDoc["resources_read"];
  787. delete resourcesDoc["resources_read_compose"];
  788. delete startDoc.start_compose["conditions"];
  789. delete startDoc["start_read"];
  790. delete startDoc["start_read_compose"];
  791. }
  792. else if (appMode == Office._appMode.Read) {
  793. delete endDoc["end_compose"];
  794. delete endDoc.end_read["conditions"];
  795. delete endDoc["end_read_compose"];
  796. delete locationDoc["location_compose"];
  797. delete locationDoc.location_read["conditions"];
  798. delete locationDoc["location_read_compose"];
  799. delete optionalAttendeesDoc["optionalAttendees_compose"];
  800. delete optionalAttendeesDoc.optionalAttendees_read["conditions"];
  801. delete optionalAttendeesDoc["optionalAttendees_read_compose"];
  802. delete organizerDoc.organizer_read["conditions"];
  803. delete organizerDoc["organizer_read_compose"];
  804. delete requiredAttendeesDoc["requiredAttendees_compose"];
  805. delete requiredAttendeesDoc.requiredAttendees_read["conditions"];
  806. delete requiredAttendeesDoc["requiredAttendees_read_compose"];
  807. delete resourcesDoc.resources_read["conditions"];
  808. delete resourcesDoc["resources_read_compose"];
  809. delete startDoc["start_compose"];
  810. delete startDoc.start_read["conditions"];
  811. delete startDoc["start_read_compose"];
  812. }
  813. else if (appMode == Office._appMode.ReadCompose) {
  814. delete endDoc["end_compose"];
  815. delete endDoc["end_read"];
  816. delete endDoc.end_read_compose["condtions"];
  817. delete locationDoc["location_compose"];
  818. delete locationDoc["location_read"];
  819. delete optionalAttendeesDoc["optionalAttendees_compose"];
  820. delete optionalAttendeesDoc["optionalAttendees_read"];
  821. delete optionalAttendeesDoc.optionalAttendees_read_compose["conditions"];
  822. delete locationDoc.location_read_compose["conditions"];
  823. delete organizerDoc["organizer_read"];
  824. delete organizerDoc.organizer_read_compose["conditions"];
  825. delete requiredAttendeesDoc["requiredAttendees_compose"];
  826. delete requiredAttendeesDoc["requiredAttendees_read"];
  827. delete requiredAttendeesDoc.requiredAttendees_read_compose["conditions"];
  828. delete resourcesDoc["resources_read"];
  829. delete resourcesDoc.resources_read_compose["conditions"];
  830. delete startDoc["start_compose"];
  831. delete startDoc["start_read"];
  832. delete startDoc.start_read_compose["conditions"];
  833. }
  834. Office._processContents(obj, endDoc);
  835. Office._processContents(obj, locationDoc);
  836. Office._processContents(obj, optionalAttendeesDoc);
  837. Office._processContents(obj, organizerDoc);
  838. Office._processContents(obj, requiredAttendeesDoc);
  839. Office._processContents(obj, resourcesDoc);
  840. Office._processContents(obj, startDoc);
  841. };
  842. Office._$MailboxMessage_helper = function (obj, appMode) {
  843. // BCC property.
  844. bccDoc = {
  845. bcc_compose: {
  846. conditions: {
  847. hosts: ["not outlook; outlookcompose"]
  848. },
  849. name: "bcc",
  850. annotate: {
  851. /// <field name="bcc" type='Recipients'>Provides methods to get and set the Bcc recipients of a message.</field>
  852. bcc: undefined
  853. },
  854. contents: function () {
  855. return new Office._context_mailbox_item_recipients();
  856. }
  857. },
  858. bcc_read_compose: {
  859. conditions: {
  860. hosts: ["outlook; outlookcompose"]
  861. },
  862. name: "bcc",
  863. annotate: {
  864. /// <field name="bcc">Gets the Bcc recipients of a message. In read mode, the bcc property is undefined. In compose mode it returns a Recipients object.</field>
  865. bcc: undefined
  866. }
  867. }
  868. }
  869. // CC property.
  870. ccDoc = {
  871. cc_compose: {
  872. conditions: {
  873. hosts: ["not outlook; outlookcompose"]
  874. },
  875. name: "cc",
  876. annotate: {
  877. /// <field name="cc" type='Recipients'>Provides methods to get and set the carbon-copy (Cc) recipients of a message.</field>
  878. cc: undefined
  879. },
  880. contents: function () {
  881. return new Office._context_mailbox_item_recipients();
  882. }
  883. },
  884. cc_read: {
  885. conditions: {
  886. hosts: ["outlook; not outlookcompose"]
  887. },
  888. name: "cc",
  889. annotate: {
  890. /// <field name="cc" type='String'>Gets the carbon-copy (Cc) recipients of a message.</field>
  891. cc: undefined
  892. },
  893. contents: function () {
  894. return new Array(new Office._context_mailbox_item_emailAddressDetails())
  895. }
  896. },
  897. cc_read_compose: {
  898. conditions: {
  899. hosts: ["outlook; outlookcompose"]
  900. },
  901. name: "cc",
  902. annotate: {
  903. /// <field name="cc"> Gets the carbon-copy (Cc) recipients of a message. In read mode, the cc property returns an array of EmailAddressDetails objects. In compose mode it returns a Recipients object.</field>
  904. cc: undefined
  905. }
  906. }
  907. }
  908. // conversationId property
  909. Office._processContents(obj, {
  910. conversationIdDoc: {
  911. conditions: {
  912. hosts: ["outlook", "outlookcompose"]
  913. },
  914. name: "conversationId",
  915. annotate: {
  916. ///<field name="conversationId" type='String'>Gets an identifier for the email conversation that contains a particular message.</field>
  917. conversationId: undefined
  918. }
  919. }
  920. });
  921. // From property.
  922. fromDoc = {
  923. from_read: {
  924. conditions: {
  925. hosts: ["outlook, not outlookcompose"]
  926. },
  927. name: "from",
  928. annotate: {
  929. /// <field name="from" type='EmailAddressDetails'>Gets the email address of the message's sender.</field>
  930. from: undefined
  931. },
  932. contents: function () {
  933. return new Office._context_mailbox_item_emailAddressDetails();
  934. }
  935. },
  936. from_read_compose: {
  937. conditions: {
  938. hosts: ["outlook, outlookcompose"]
  939. },
  940. name: "from",
  941. annotate: {
  942. /// <field name="from" type='EmailAddressDetails'>Gets the email address of the message's sender. In compose mode, the from property is undefined.</field>
  943. from: undefined
  944. },
  945. contents: function () {
  946. return new Office._context_mailbox_item_emailAddressDetails();
  947. }
  948. }
  949. }
  950. // InternetMessageId property.
  951. internetMessageIdDoc = {
  952. internetMessageId_read: {
  953. conditions: {
  954. hosts: ["outlook, not outlookcompose"]
  955. },
  956. name: "internetMessageId",
  957. annotate: {
  958. /// <field name="internetMessageId" type='String'>Gets the internet message identifier of the message.</field>
  959. internetMessageId: undefined
  960. }
  961. },
  962. internetMessageId_read_compose: {
  963. conditions: {
  964. hosts: ["outlook, outlookcompose"]
  965. },
  966. name: "internetMessageId",
  967. annotate: {
  968. /// <field name="internetMessageId" type='String'>Gets the internet message identifier of the message. In compose mode, the internetMessageId property is undefined.</field>
  969. internetMessageId: undefined
  970. }
  971. }
  972. }
  973. // Sender property.
  974. senderDoc = {
  975. sender_read: {
  976. conditions: {
  977. hosts: ["outlook, not outlookcompose"]
  978. },
  979. name: "sender",
  980. annotate: {
  981. /// <field name="sender" type='EmailAddressDetails'>Gets the email address of the message sender.</field>
  982. sender: undefined
  983. },
  984. contents: function () {
  985. return new Office._context_mailbox_item_emailAddressDetails();
  986. }
  987. },
  988. sender_read_compose: {
  989. conditions: {
  990. hosts: ["outlook, outlookcompose"]
  991. },
  992. name: "sender",
  993. annotate: {
  994. /// <field name="sender" type='EmailAddressDetails'>Gets the email address of the message sender. In compose mode, the sender property is undefined.</field>
  995. sender: undefined
  996. },
  997. contents: function () {
  998. return new Office._context_mailbox_item_emailAddressDetails();
  999. }
  1000. }
  1001. }
  1002. // To property
  1003. toDoc = {
  1004. to_compose: {
  1005. conditions: {
  1006. hosts: ["not outlook; outlookcompose"]
  1007. },
  1008. name: "to",
  1009. annotate: {
  1010. /// <field name="to" type='Recipients'>Provides methods to get and set the list of recipients of a message.</field>
  1011. to: undefined
  1012. },
  1013. contents: function () {
  1014. return new Office._context_mailbox_item_recipients();
  1015. }
  1016. },
  1017. to_read: {
  1018. conditions: {
  1019. hosts: ["outlook; not outlookcompose"]
  1020. },
  1021. name: "to",
  1022. annotate: {
  1023. /// <field name="to" type='EmailAddressDetails[]'>Gets the list of recipients of a message.</field>
  1024. to: undefined
  1025. },
  1026. contents: function () {
  1027. return new Array(new Office._context_mailbox_item_emailAddressDetails())
  1028. }
  1029. },
  1030. to_read_compose: {
  1031. conditions: {
  1032. hosts: ["outlook; outlookcompose"]
  1033. },
  1034. name: "to",
  1035. annotate: {
  1036. /// <field name="to">Gets the list of recipients of a message. In read mode, the to property returns an array of EmailAddressDetails objects. In compose mode, it returns a Recipients object.</field>
  1037. to: undefined
  1038. }
  1039. }
  1040. }
  1041. if (appMode == Office._appMode.Compose) {
  1042. delete bccDoc.bcc_compose["conditions"];
  1043. delete bccDoc["bcc_read_compose"];
  1044. delete ccDoc.cc_compose["conditions"];
  1045. delete ccDoc["cc_read"];
  1046. delete ccDoc["cc_read_compose"];
  1047. delete fromDoc["from_read"];
  1048. delete fromDoc["from_read_compose"];
  1049. delete internetMessageIdDoc["internetMessageId_read"];
  1050. delete internetMessageIdDoc["internetMessageId_read_compose"];
  1051. delete senderDoc["sender_read"];
  1052. delete senderDoc["sender_read_compose"];
  1053. delete toDoc.to_compose["conditions"];
  1054. delete toDoc["to_read"];
  1055. delete toDoc["to_read_compose"];
  1056. }
  1057. else if (appMode == Office._appMode.Read) {
  1058. delete bccDoc["bcc_compose"];
  1059. delete bccDoc["bcc_read_compose"];
  1060. delete ccDoc["cc_compose"];
  1061. delete ccDoc.cc_read["conditions"];
  1062. delete ccDoc["cc_read_compose"];
  1063. delete fromDoc.from_read["conditions"];
  1064. delete fromDoc["from_read_compose"];
  1065. delete internetMessageIdDoc.internetMessageId_read["conditions"];
  1066. delete internetMessageIdDoc["internetMessageId_read_compose"];
  1067. delete senderDoc.sender_read["conditions"];
  1068. delete senderDoc["sender_read_compose"];
  1069. delete toDoc["to_compose"];
  1070. delete toDoc.to_read["conditions"];
  1071. delete toDoc["to_read_compose"];
  1072. }
  1073. else if (appMode == Office._appMode.ReadCompose) {
  1074. delete bccDoc["bcc_compose"];
  1075. delete bccDoc.bcc_read_compose["conditions"];
  1076. delete ccDoc["cc_compose"];
  1077. delete ccDoc["cc_read"];
  1078. delete ccDoc.cc_read_compose["conditions"];
  1079. delete fromDoc["from_read"];
  1080. delete fromDoc.from_read_compose["conditions"];
  1081. delete internetMessageIdDoc["internetMessageId_read"];
  1082. delete internetMessageIdDoc.internetMessageId_read_compose["conditions"];
  1083. delete senderDoc["sender_read"];
  1084. delete senderDoc.sender_read_compose["conditions"];
  1085. delete toDoc["to_compose"];
  1086. delete toDoc["to_read"];
  1087. delete toDoc.to_read_compose["conditions"];
  1088. }
  1089. Office._processContents(obj, bccDoc);
  1090. Office._processContents(obj, ccDoc);
  1091. Office._processContents(obj, fromDoc);
  1092. Office._processContents(obj, internetMessageIdDoc);
  1093. Office._processContents(obj, senderDoc);
  1094. Office._processContents(obj, toDoc);
  1095. }
  1096. Office._context_mailbox = function () {
  1097. ///<field name="ewsUrl" type='String'>Gets the URL of the Exchange Web Services (EWS) endpoint for this email account.</field>
  1098. ///<field name="item" type="Item">Represents the current item (message or appointment).</field>
  1099. ///<field name="userProfile" type="UserProfile">Represents the host application's user profile information.</field>
  1100. ///<field name="diagnostics" type="Diagnostics">Provides troubleshooting capabilities for a mail app.</field>
  1101. var instance = new Office._context_mailbox_item();
  1102. this.ewsUrl = {};
  1103. this.item = intellisense.nullWithCompletionsOf(instance);
  1104. this.userProfile = new Office._context_mailbox_userProfile();
  1105. this.diagnostics = new Office._context_mailbox_diagnostics();
  1106. this.displayAppointmentForm = function (itemId) {
  1107. ///<summary>Displays an existing calendar appointment.</summary>
  1108. ///<param name="itemId" type="String">The Exchange Web Services (EWS) identifier for an existing calendar appointment.</param>
  1109. };
  1110. this.displayMessageForm = function (itemId) {
  1111. ///<summary>Displays an existing message.</summary>
  1112. ///<param name="itemId" type="String">The Exchange Web Services (EWS) identifier for an existing message.</param>
  1113. };
  1114. this.displayNewAppointmentForm = function (meetingRequest) {
  1115. ///<summary>Display a form for creating a new calendar appointment.</summary>
  1116. ///<param name="meetingRequest" type="Object">
  1117. /// Syntax example: {requiredAttendees:, optionalAttendees:, start:, end:, location:, resources:, subject:, body:}
  1118. /// &#10; requiredAttendees: An array of strings containing the SMTP email addresses of the required attendees for the meeting. The array is limited to 100 entries.
  1119. /// &#10; optionalAttendees: An array of strings containing the SMTP email addresses of the optional attendees for the meeting. The array is limited to 100 entries.
  1120. /// &#10; start: The start date and time of the appointment.
  1121. /// &#10; end: The end date and time of the appointment.
  1122. /// &#10; location: A string containing the location of the appointment. Limited to 255 characters.
  1123. /// &#10; resources: An array of strings containing the resources required for the appointment. The array is limited to 100 entries.
  1124. /// &#10; subject: A string containing the subject of the appointment. Limited to 255 characters.
  1125. /// &#10; body: The body of the appointment message. Limited to 32 Kb.
  1126. /// </param>
  1127. };
  1128. this.convertToLocalClientTime = function (timeValue) {
  1129. ///<summary>Gets a dictionary containing time information in local client time.</summary>
  1130. ///<param name="timeValue" type="Date">The date and time to convert.</param>
  1131. }
  1132. this.convertToUtcClientTime = function (input) {
  1133. ///<summary>Get s Date object from a dictionary containing time information.</summary>
  1134. ///<param name="input" type="dictionary">A dictionary containing a date. The dictionary should contain the following fields: year, month, date, hours, minutes, seconds, time zone, time zone offset.</param>
  1135. }
  1136. this.getCallbackTokenAsync = function (callback, userContext) {
  1137. ///<summary>Gets a token that can be used to retrieve attachments for the current item. This method is only available in read mode.</summary>
  1138. ///<param name="callback" type="function">The method to call when the asynchronous method is complete.</param>
  1139. ///<param name="userContext" type="Object" optional="true">Any state data that is passed to the asynchronous method.</param>
  1140. var result = new Office._Mailbox_AsyncResult("getCallbackTokenAsync");
  1141. callback(result);
  1142. }
  1143. this.getUserIdentityTokenAsync = function (callback, userContext) {
  1144. ///<summary>Gets a token identifying the user and the mail app for Outlook.</summary>
  1145. ///<param name="callback" type="function">The method to call when the asynchronous load method is complete.</param>
  1146. ///<param name="userContext" type="Object" optional="true">Any state data that is passed to the asynchronous method.</param>
  1147. var result = new Office._Mailbox_AsyncResult("getUserIdentityTokenAsync");
  1148. callback(result);
  1149. };
  1150. this.makeEwsRequestAsync = function (data, callback, userContext) {
  1151. ///<summary>Gets a token identifying the user and the mail app for Outlook.</summary>
  1152. ///<param name="data" type="String">Makes an asynchronous request to an Exchange Web Services (EWS) service on the Microsoft Exchange Server 2013 Preview that hosts the mail app for Outlook.</param>
  1153. ///<param name="callback" type="function">The method to call when the asynchronous load method is complete.</param>
  1154. ///<param name="userContext" type="Object" optional="true">Any state data that is passed to the asynchronous method.</param>
  1155. var result = new Office._Mailbox_AsyncResult("makeEwsRequestAsync");
  1156. callback(result);
  1157. };
  1158. }
  1159. Office._context_mailbox_diagnostics = function () {
  1160. ///<field name="hostName" type='String'>Gets a string containing the name of the host application for the mail app.</field>
  1161. ///<field name="hostVersion" type='String'>Gets a string containing the version of either the host application or the Exchange server.</field>
  1162. ///<field name="OWAView" type='String'>Gets a string containing the current view of the Outlook Web App.</field>
  1163. this.hostName = {};
  1164. this.hostVersion = {};
  1165. this.OWAView = {};
  1166. }
  1167. Office._context_mailbox_item_attachmentDetails = function () {
  1168. /// <field name="attachmentType" type='Office.MailboxEnums.AttachmentType'>Indicates whether the attachment is an Exchange item or file.</field>
  1169. /// <field name="contentType" type='String'>The MIME content type of the attachment.</field>
  1170. /// <field name="id" type='String'>The Exchange Web Services (EWS) attachment identifer for the attachment.</field>
  1171. /// <field name="isInline" type='Boolean'>true if the attachment is inline, otherwise, false.</field>
  1172. /// <field name="name" type='String'>The name of the attachment.</field>
  1173. /// <field name="size' type='number'>The size of the attachment in bytes.</field>
  1174. this.attachmentType = {};
  1175. this.contentType = {};
  1176. this.id = {};
  1177. this.isInline = {};
  1178. this.name = {};
  1179. this.size = {};
  1180. }
  1181. Office._context_mailbox_item_body = function () {
  1182. this.getTypeAsync = function (options, callback) {
  1183. ///<summary>Gets a value that indicates whether the body is in HTML or text format.</summary>
  1184. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method.
  1185. ///<param name="callback" type="function" optional="true">The method to call when the asynchronous request is complete.</param>
  1186. var result = new Office._Mailbox_AsyncResult("bodyGetTypeAsync");
  1187. if (arguments.length == 1) { callback = options; }
  1188. callback(result);
  1189. };
  1190. this.prependAsync = function (data, options, callback) {
  1191. ///<summary>Sets the body of a message or meeting.</summary>
  1192. ///<param name="data" type="String">The text to insert at the beginning of the item body. The string is limited to 1,000,000 characters.</param>
  1193. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method. </param>
  1194. ///<param name="callback" type="function" optional="true">The method to call when the asynchronous request is complete.</param>
  1195. var result = new Office._Mailbox_AsyncResult();
  1196. if (arguments.length == 2) { callback = options; }
  1197. callback(result);
  1198. };
  1199. this.setSelectedDataAsync = function (data, options, callback) {
  1200. ///<summary>Replaces the selection in the body with the specified text.</summary>
  1201. ///<param name="data" type="String">The text to insert in the item body. The string is limited to 1,000,000 characters.</param>
  1202. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method. </param>
  1203. ///<param name="callback" type="function" optional="true">The method to call when the asynchronous request is complete.</param>
  1204. var result = new Office._Mailbox_AsyncResult();
  1205. if (arguments.length == 2) { callback = options; }
  1206. callback(result);
  1207. };
  1208. }
  1209. Office._context_mailbox_item_contact = function () {
  1210. ///<field name="addresses" type='String[]'>Gets the mailing and street addresses associated with a contact.</field>
  1211. ///<field name="businessName" type='String'>Gets the name of the business associated with a contact.</field>
  1212. ///<field name="emailAddresses" type='String[]'>Gets the SMTP email addresses associated with a contact.</field>
  1213. ///<field name="personName" type='String'>Gets the name of the person associated with a contact.</field>
  1214. ///<field name="phoneNumbers" type='PhoneNumber[]'>Gets the phone numbers associated with a contact.</field>
  1215. ///<field name="urls" type='String[]'>Get the list of Internet URLs associated with a contact.</field>
  1216. this.addresses = new Array("");
  1217. this.businessName = {};
  1218. this.emailAddresses = new Array("");
  1219. this.personName = {};
  1220. this.phoneNumbers = new Array(new Office._context_mailbox_item_phoneNumber());
  1221. this.urls = new Array("");
  1222. }
  1223. Office._context_mailbox_item_customProperties = function () {
  1224. this.get = function (name) {
  1225. ///<summary>Gets the value of the specicifed custom property.</summary>
  1226. ///<param name="name" type="String">The name of the custom property to be returned.</param>
  1227. }
  1228. this.remove = function (name) {
  1229. ///<summary>Removes the specicifed custom property.</summary>
  1230. ///<param name="name" type="String">The name of the custom property to be removed.</param>
  1231. }
  1232. this.saveAsync = function (callback, userContext) {
  1233. ///<summary>Saves item-specific custom properties to the Exchange server.</summary>
  1234. ///<param name="callback" type="String" optional="true">The method to call when an asynchronous call is complete.</param>
  1235. ///<param name="userContext" type="Object" optional="true">Any state data that is passed to the callback method.</param>
  1236. }
  1237. this.set = function (name, value) {
  1238. ///<summary>Sets the value of the specicifed custom property.</summary>
  1239. ///<param name="name" type="String">The name of the custom property to be set.</param>
  1240. ///<param name="value" type="Object">The value of the custom property to be set.
  1241. }
  1242. }
  1243. Office._context_mailbox_item_emailAddressDetails = function () {
  1244. ///<field name="appointmentResponse" type="Office.MailboxEnums.ResponseType">One of the ResponseType enumeration values.</field>
  1245. ///<field name="displayName" type="String">Gets the display name associated with the email address.</field>
  1246. ///<field name="emailAddress" type="String">Gets the SMTP email address.</field>
  1247. ///<field name="recipientType" type="Office.MailboxEnums.RecipientType">One of the RecipientType enumeration values.</field>
  1248. this.appointmentResponse = {};
  1249. this.displayName = {};
  1250. this.emailAddress = {};
  1251. this.recipientType = {};
  1252. }
  1253. Office._context_mailbox_item_emailUser = function () {
  1254. ///<field name="name" type="String">Gets the name associated with an email account.</field>
  1255. this.name = {};
  1256. ///<field name="userId" type="String">Gets the SMTP email address of the email account.</field>
  1257. this.userId = {};
  1258. }
  1259. Office._context_mailbox_item_entities = function () {
  1260. ///<field name="addresses" type='Array'>Gets the physical addresses (street or mailing address) found in an email message or appointment.</field>
  1261. ///<field name="contacts" type='Array'>Gets the contacts found in an email message or appointment.</field>
  1262. ///<field name="emailAddresses" type='Array'>Gets the email addresses found in an email message or appointment.</field>
  1263. ///<field name="meetingSuggestions" type='Array'>Gets the meeting suggestions found in an email message or appointment.</field>
  1264. ///<field name="phoneNumbers" type='Array'>Gets the phone numbers found in an email message or appointment.</field>
  1265. ///<field name="taskSuggestions" type='Array'>Gets the task suggestions found in an email message or appointment.</field>
  1266. ///<field name="urls" type='Array'>Gets the Internet URLs found in an email message or appointment.</field>
  1267. this.addresses = new Array("");
  1268. this.contacts = new Array(new Office._context_mailbox_item_contact());
  1269. this.emailAddresses = new Array("");
  1270. this.meetingSuggestions = new Array(new Office._context_mailbox_item_meetingSuggestion());
  1271. this.phoneNumbers = new Array(new Office._context_mailbox_item_phoneNumber());
  1272. this.taskSuggestions = new Array(new Office._context_mailbox_item_taskSuggestion());
  1273. this.urls = new Array("");
  1274. }
  1275. Office._context_mailbox_item_location = function () {
  1276. this.getAsync = function (options, callback) {
  1277. ///<summary>Gets the location of an appointment.</summary>
  1278. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method. </param>
  1279. ///<param name="callback" type="function">The method to call when the asynchronous request is complete.</param>
  1280. var result = new Office._Mailbox_AsyncResult("locationGetAsync");
  1281. if (arguments.length == 1) { callback = options; }
  1282. callback(result);
  1283. };
  1284. this.setAsync = function (location, options, callback) {
  1285. ///<summary>Sets the subject of an item.</summary>
  1286. ///<param name="location" type="String">The location of the appointment. The string is limited to 255 characters.</param>
  1287. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method. Optional.</param>
  1288. ///<param name="callback" type="function" optional="true">The method to call when the asynchronous request is complete.</param>
  1289. var result = new Office._Mailbox_AsyncResult();
  1290. if (arguments.length == 2) { callback = options; }
  1291. callback(result);
  1292. }
  1293. }
  1294. Office._context_mailbox_item_meetingRequest = function () {
  1295. ///<field name="end" type='Date'>Gets the date and time that a meeting is to end.</field>
  1296. ///<field name="location" type='String'>Gets the location of the proposed meeting.</field>
  1297. ///<field name="optionalAttendees" type='EmailAddressDetails[]'>Gets a list of the optional attendees for the meeting.</field>
  1298. ///<field name="requiredAttendees" type='EmailAddressDetails[]'>Gets the required attendees for the meeting.</field>
  1299. ///<field name="resources" type='String'>Gets a list of the resources required for the meeting.</field>
  1300. ///<field name="start" type='Date'>Gets the date and time that the meeting is to begin.</field>
  1301. this.end = new Date;
  1302. this.location = {};
  1303. this.optionalAttendees = new Array(new Office._context_mailbox_item_emailAddressDetails());
  1304. this.requiredAttendees = new Array(new Office._context_mailbox_item_emailAddressDetails());
  1305. this.resources = new Array("");
  1306. this.start = new Date();
  1307. }
  1308. Office._context_mailbox_item_meetingSuggestion = function () {
  1309. ///<field name="attendees" type='EmailAddressDetails[]'>Gets the attendees for a suggested meeting.</field>
  1310. ///<field name="end" type='Date'>Gets the date and time that a suggested meeting is to end.</field>
  1311. ///<field name="location" type='String'>Gets the location of a suggested meeting.</field>
  1312. ///<field name="meetingString" type='String'>Gets a string that was identified as a meeting suggestion.</field>
  1313. ///<field name="start" type='Date'>Gets the date and time that a suggested meeting is to begin.</field>
  1314. ///<field name="subject" type='String'>Gets the subject of a suggested meeting.</field>
  1315. this.attendees = new Array(new Office._Context_mailbox_item_emailAddressDetails());
  1316. this.end = new Date();
  1317. this.location = {};
  1318. this.meetingString = {};
  1319. this.start = new Date();
  1320. this.subject = {};
  1321. }
  1322. Office._context_mailbox_item_recipients = function () {
  1323. this.addAsync = function (recipients, options, callback) {
  1324. ///<summary>Adds recipients to an item.</summary>
  1325. ///<param name="recipients" type="Array">
  1326. /// An array containing the recipients of the item. It can be:
  1327. /// &#10; An array of strings containing the SMTP email addresses of the recipients.
  1328. /// &#10; An array of {"diplayName":, "emailAddress":} dictionaries.
  1329. /// &#10; An array of EmailAddressDetail objects.
  1330. /// </param>
  1331. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method. </param>
  1332. ///<param name="callback" type="function" optional="true">The method to call when the asynchronous request is complete.</param>
  1333. var result = new Office._Mailbox_AsyncResult();
  1334. if (arguments.length == 2) { callback = options; }
  1335. callback(result);
  1336. };
  1337. this.getAsync = function (options, callback) {
  1338. ///<summary>Gets the list of recipients for the item.</summary>
  1339. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method.</param>
  1340. ///<param name="callback" type="function">The method to call when the asynchronous request is complete.</param>
  1341. var result = new Office._Mailbox_AsyncResult("recipientGetAsync");
  1342. if (arguments.length == 1) { callback = options; }
  1343. callback(result);
  1344. };
  1345. this.setAsync = function (recipients, options, callback) {
  1346. ///<summary>Sets the recipients of an item.</summary>
  1347. ///<param name="recipients" type="Array">
  1348. /// An array containing the recipients of the item. The array is limited to 100 entries. It can be:
  1349. /// &#10; An array of strings containing the SMTP email addresses of the recipients.
  1350. /// &#10; An array of {"diplayName":, "emailAddress":} dictionaries.
  1351. /// &#10; An array of EmailAddressDetail objects.
  1352. /// </param>
  1353. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method. </param>
  1354. ///<param name="callback" type="function" optional="true">The method to call when the asynchronous request is complete.</param>
  1355. var result = new Office._Mailbox_AsyncResult();
  1356. if (arguments.length == 2) { callback = options; }
  1357. callback(result);
  1358. }
  1359. }
  1360. Office._context_mailbox_item_phoneNumber = function () {
  1361. ///<field name="originalPhoneString" type='String'>Gets the text that was identified in an item as a phone number.</field>
  1362. ///<field name="phoneString" type='String'>Gets a text string identified as a phone number.</field>
  1363. ///<field name="type" type='String'>Gets the type of a phone number.</field>
  1364. this.originalPhoneString = {};
  1365. this.phoneString = {};
  1366. this.type = {};
  1367. }
  1368. Office._context_mailbox_item_subject = function () {
  1369. this.getAsync = function (options, callback) {
  1370. ///<summary>Gets the subject of an item.</summary>
  1371. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method.</param>
  1372. ///<param name="callback" type="function">The method to call when the asynchronous request is complete.</param>
  1373. var result = new Office._Mailbox_AsyncResult("subjectGetAsync");
  1374. if (arguments.length = 1) { callback = options; }
  1375. callback(result);
  1376. };
  1377. this.setAsync = function (data, options, callback) {
  1378. ///<summary>Sets the subject of an item.</summary>
  1379. ///<param name="data" type="String">The subject of the item. The string is limited to 255 characters.</param>
  1380. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method.</param>
  1381. ///<param name="callback" type="function" optional="true">The method to call when the asynchronous request is complete.</param>
  1382. var result = new Office._Mailbox_AsyncResult();
  1383. if (arguments.length == 2) { callback = options; }
  1384. callback(result);
  1385. }
  1386. }
  1387. Office._context_mailbox_item_taskSuggestion = function () {
  1388. ///<field name="assignees" type='EmailAddressDetails[]'>Gets the users that should be assigned a suggested task.</field>
  1389. ///<field name="taskString" type='String'>Gets the text of an item that was identified as a task suggestion.</field>
  1390. this.assignees = new Array(new Office._context_mailbox_item_emailAddressDetails());
  1391. this.taskString = {};
  1392. }
  1393. Office._context_mailbox_item_time = function () {
  1394. this.getAsync = function (options, callback) {
  1395. ///<summary>Gets the UTC value of a time.</summary>
  1396. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method.</param>
  1397. ///<param name="callback" type="function">The method to call when the asynchronous request is complete.</param>
  1398. var result = new Office._Mailbox_AsyncResult("subjectGetAsync");
  1399. if (arguments.length == 1) { callback = options; }
  1400. callback(result);
  1401. };
  1402. this.setAsync = function (dateTime, options, callback) {
  1403. ///<summary>Sets the subject of an item.</summary>
  1404. ///<param name="dateTime" type="String">The date and time to set in UTC.</param>
  1405. ///<param name="options" type="Object" optional="true">Any optional parameters or state data passed to the method.</param>
  1406. ///<param name="callback" type="function" optional="true">The method to call when the asynchronous request is complete.</param>
  1407. var result = new Office._Mailbox_AsyncResult();
  1408. if (arguments.length == 2) { callback = options; }
  1409. callback(result);
  1410. }
  1411. }
  1412. Office._context_mailbox_userProfile = function () {
  1413. ///<field name="displayName" type='String'>Gets the user's display name.</field>
  1414. ///<field name="emailAddress" type='String'>Gets the user's SMTP email address.</field>
  1415. ///<field name="timeZone" type='String'>Gets the user's local time zone.</field>
  1416. this.displayName = {};
  1417. this.emailAddress = {};
  1418. this.timeZone = {};
  1419. }
  1420. Office._context_mailbox_selectedDataResult = function () {
  1421. ///<field name="data" type='String'>The selected text.</field>
  1422. ///<field name="sourceProperty" type='String'>Indicates whether the data is from the item's subject line or body.</field>
  1423. this.data = {};
  1424. this.sourceProperty = {};
  1425. }
  1426. Office._Mailbox_AsyncResult = function (method) {
  1427. ///<field name="asyncContext" type='Object'>The userContext parameter passed to the callback function.</field>
  1428. ///<field name="error" type='Object'>Any error that occured while processing the asynchronous request.</field>
  1429. ///<field name="status" type='Object'>The status of the asynchronous request.</field>
  1430. this.asyncContext = {};
  1431. this.error = {};
  1432. this.status = {};
  1433. if (method == "attachmentAsync") {
  1434. this.value = {}
  1435. intellisense.annotate(this, {
  1436. ///<field name="value" type='String'>The identifier of the attachment.</field>
  1437. value: null
  1438. });
  1439. }
  1440. if (method == "getCallbackTokenAsync") {
  1441. this.value = {};
  1442. intellisense.annotate(this, {
  1443. ///<field name="value" type='String'>The EWS callback token.</field>
  1444. value: null
  1445. });
  1446. }
  1447. if (method == "getUserIdentityTokenAsync") {
  1448. this.value = {}
  1449. intellisense.annotate(this, {
  1450. ///<field name="value" type='String'>A JSON Web token that identifies the current user.</field>
  1451. value: null
  1452. });
  1453. }
  1454. if (method == "makeEwsRequestAsync") {
  1455. this.value = {};
  1456. intellisense.annotate(this, {
  1457. ///<field name="value" type='String'>The XML response from the EWS operation.</field>
  1458. value: null
  1459. });
  1460. }
  1461. if (method == "loadCustomPropertiesAsync") {
  1462. this.value = new Office._context_mailbox_item_customProperties();
  1463. intellisense.annotate(this, {
  1464. ///<field name="value" type='CustomProperties'>The custom properties</field>
  1465. value: null
  1466. });
  1467. }
  1468. if (method == "bodyGetTypeAsync") {
  1469. this.value = {};
  1470. annotate(this, {
  1471. ///<field name="value" type='String'>A value that indicates whether the body is text or HTML.</field>
  1472. value: undefined
  1473. });
  1474. }
  1475. if (method == "locationGetAsync") {
  1476. this.value = {};
  1477. intellisense.annotate(this, {
  1478. ///<field name="value" type='String'>The location of the appointment.</field>
  1479. value: undefined
  1480. });
  1481. }
  1482. if (method == "recipientGetAsync") {
  1483. this.value = {};
  1484. intellisense.annotate(this, {
  1485. ///<field name="value" type='String'>An array of EmailAddressDetails objects containt the recipients of the item.</field>
  1486. value: undefined
  1487. });
  1488. }
  1489. if (method == "subjectGetAsync") {
  1490. this.value = {};
  1491. intellisense.annotate(this, {
  1492. ///<field name="value" type='String'>The subject of the item.</field>
  1493. value: undefined
  1494. });
  1495. }
  1496. if (method == "getSelectedDataAsync") {
  1497. this.value = new Office._context_mailbox_selectedDataResult();
  1498. intellisense.annotate(this, {
  1499. ///<field name="value" type='String'>The selected data.</field>
  1500. value:undefined
  1501. });
  1502. }
  1503. }
  1504. Office._MailboxEnums = function () {
  1505. this.AttachmentType = {
  1506. ///<field type="String">Specifies that the attachment is a file.</field>
  1507. File: "file",
  1508. ///<field type="String">Specifies that the attachment is an email message, appointment, or task.</field>
  1509. Item: "item"
  1510. };
  1511. this.BodyType = {
  1512. ///<field type="String">Specifies that the item body is in HTML format.</field>
  1513. HTML: "HTML",
  1514. ///<field type="String">Specifies that the item body is text format.</field>
  1515. Text: "text"
  1516. };
  1517. this.EntityType = {
  1518. ///<field type="String">Specifies that the entity is a meeting suggestion.</field>
  1519. MeetingSuggestion: "meetingSuggestion",
  1520. ///<field type="String">Specifies that the entity is a task suggestion.</field>
  1521. TaskSuggestion: "taskSuggestion",
  1522. ///<field type="String">Specifies that the entity is a postal address.</field>
  1523. Address: "address",
  1524. ///<field type="String">Specifies that the entity is SMTP email address.</field>
  1525. EmailAddress: "emailAddress",
  1526. ///<field type="String">Specifies that the entity is an Internet URL.</field>
  1527. Url: "url",
  1528. ///<field type="String">Specifies that the entity is US phone number.</field>
  1529. PhoneNumber: "phoneNumber",
  1530. ///<field type="String">Specifies that the entity is a contact.</field>
  1531. Contact: "contact"
  1532. };
  1533. this.ItemType = {
  1534. ///<field type="String">Specifies a message item. This is an IPM.Note type.</field>
  1535. Message: "message",
  1536. ///<field type="String">Specifies an appointment item. This is an IPM.Appointment type.</field>
  1537. Appointment: "appointment"
  1538. };
  1539. this.SourceProperty = {
  1540. ///<field type="String">Specifies that the source of the text is the body of an appointment or message.</field>
  1541. MailBody: "mailBody",
  1542. ///<field type="string">Specifies that the source of the text is the subject of an appointment or message.</field>
  1543. MailSubject: "mailSubject"
  1544. };
  1545. this.RecipientType = {
  1546. ///<field type="String">Specifies that the recipient is not one of the other recipient types.</field>
  1547. Other: "other",
  1548. ///<field type="String">Specifies that the recipient is a distribution list containing a list of email addresses.</field>
  1549. DistributionList: "distributionList",
  1550. ///<field type="String">Specifies that the recipient is an SMTP email address that is on the Exchange server.</field>
  1551. User: "user",
  1552. ///<field type="String">Specifies that the recipient is an SMTP email address that is not on the Exchange server.</field>
  1553. ExternalUser: "externalUser"
  1554. };
  1555. this.ResponseType = {
  1556. ///<field type="String">Specifies that no response has been received.</field>
  1557. None: "none",
  1558. ///<field type="String">Specifies that you are the meeting organizer.</field>
  1559. Organizer: "organizer",
  1560. ///<field type="String">Specifies that the attendee is tentatively attending.</field>
  1561. Tentative: "tentative",
  1562. ///<field type="String">Specifies that the attendee is attending.</field>
  1563. Accepted: "accepted",
  1564. ///<field type="String">Specifies that the attendee is not attending.</field>
  1565. Declined: "declined"
  1566. };
  1567. };