@types/office-js 1.0.268 → 1.0.269

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.
office-js/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Office.js (https://github.com/OfficeD
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 28 Jul 2022 21:32:21 GMT
11
+ * Last updated: Wed, 03 Aug 2022 22:02:23 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
office-js/index.d.ts CHANGED
@@ -9806,6 +9806,11 @@ declare namespace Office {
9806
9806
  *
9807
9807
  * - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
9808
9808
  *
9809
+ * **Note**: If you're adding an inline base64 image to the body of a message or appointment being composed, you must first get the current item body using the
9810
+ * {@link https://docs.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
9811
+ * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image will not render in the body once it's inserted.
9812
+ * For further guidance, see {@link https://docs.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
9813
+ *
9809
9814
  * @param base64File - The base64 encoded content of an image or file to be added to an email or event.
9810
9815
  * @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
9811
9816
  * @param options - An object literal that contains one or more of the following properties.
@@ -9845,6 +9850,11 @@ declare namespace Office {
9845
9850
  *
9846
9851
  * - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
9847
9852
  *
9853
+ * **Note**: If you're adding an inline base64 image to the body of a message or appointment being composed, you must first get the current item body using the
9854
+ * {@link https://docs.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
9855
+ * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image will not render in the body once it's inserted.
9856
+ * For further guidance, see {@link https://docs.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
9857
+ *
9848
9858
  * @param base64File - The base64 encoded content of an image or file to be added to an email or event.
9849
9859
  * @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
9850
9860
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
@@ -14709,6 +14719,11 @@ declare namespace Office {
14709
14719
  *
14710
14720
  * - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
14711
14721
  *
14722
+ * **Note**: If you're adding an inline base64 image to the body of a message or appointment being composed, you must first get the current item body using the
14723
+ * {@link https://docs.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
14724
+ * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image will not render in the body once it's inserted.
14725
+ * For further guidance, see {@link https://docs.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
14726
+ *
14712
14727
  * @param base64File - The base64-encoded content of an image or file to be added to an email or event.
14713
14728
  * @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
14714
14729
  * @param options - An object literal that contains one or more of the following properties.
@@ -14745,6 +14760,11 @@ declare namespace Office {
14745
14760
  *
14746
14761
  * - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
14747
14762
  *
14763
+ * **Note**: If you're adding an inline base64 image to the body of a message or appointment being composed, you must first get the current item body using the
14764
+ * {@link https://docs.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
14765
+ * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image will not render in the body once it's inserted.
14766
+ * For further guidance, see {@link https://docs.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
14767
+ *
14748
14768
  * @param base64File - The base64-encoded content of an image or file to be added to an email or event.
14749
14769
  * @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
14750
14770
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.268",
3
+ "version": "1.0.269",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "e84605bf2defae97ba0a8bd9f9f2dcd0471d9d5a8f2ae6d301ce9429d7c902a2",
48
+ "typesPublisherContentHash": "725079f7f464828e0c69605136e2ff437cd210901190a30f999d893602504780",
49
49
  "typeScriptVersion": "4.0"
50
50
  }