@types/office-js 1.0.468 → 1.0.469
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 +1 -1
- office-js/index.d.ts +36 -24
- office-js/package.json +2 -2
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:
|
|
11
|
+
* Last updated: Thu, 20 Feb 2025 18:37:24 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -10595,9 +10595,6 @@ declare namespace Office {
|
|
|
10595
10595
|
*
|
|
10596
10596
|
* You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
|
|
10597
10597
|
*
|
|
10598
|
-
* **Note**: If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
|
|
10599
|
-
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
10600
|
-
*
|
|
10601
10598
|
* @remarks
|
|
10602
10599
|
* [Api set: Mailbox 1.8]
|
|
10603
10600
|
*
|
|
@@ -10605,6 +10602,18 @@ declare namespace Office {
|
|
|
10605
10602
|
*
|
|
10606
10603
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10607
10604
|
*
|
|
10605
|
+
* **Important**:
|
|
10606
|
+
*
|
|
10607
|
+
* - If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
|
|
10608
|
+
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
10609
|
+
*
|
|
10610
|
+
* - To add an inline Base64-encoded image to the body of a message or appointment being composed, use the
|
|
10611
|
+
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body| Body API} methods, such as `prependAsync`, `setSignatureAsync`, or `setAsync`.
|
|
10612
|
+
* If you use `Office.context.mailbox.item.body.setAsync` to insert the image, first call `Office.context.mailbox.item.body.getAsync` to get the current body of the item.
|
|
10613
|
+
* Otherwise, the image won't render in the body once it's inserted. For an example, see the
|
|
10614
|
+
* {@link https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/outlook/20-item-body/add-inline-base64-image.yaml | Add inline Base64-encoded image to message or appointment body (Compose)}
|
|
10615
|
+
* sample in {@link https://learn.microsoft.com/office/dev/add-ins/overview/explore-with-script-lab | Script Lab}.
|
|
10616
|
+
*
|
|
10608
10617
|
* **Errors**:
|
|
10609
10618
|
*
|
|
10610
10619
|
* - `AttachmentSizeExceeded`: The attachment is larger than allowed.
|
|
@@ -10613,11 +10622,6 @@ declare namespace Office {
|
|
|
10613
10622
|
*
|
|
10614
10623
|
* - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
|
|
10615
10624
|
*
|
|
10616
|
-
* **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
|
|
10617
|
-
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
10618
|
-
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
10619
|
-
* For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
|
|
10620
|
-
*
|
|
10621
10625
|
* @param base64File - The Base64-encoded content of an image or file to be added to an email or event. The maximum length of the encoded string is 27,892,122 characters (about 25 MB).
|
|
10622
10626
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
10623
10627
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
@@ -10638,9 +10642,6 @@ declare namespace Office {
|
|
|
10638
10642
|
*
|
|
10639
10643
|
* You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
|
|
10640
10644
|
*
|
|
10641
|
-
* **Note**: If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
|
|
10642
|
-
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
10643
|
-
*
|
|
10644
10645
|
* @remarks
|
|
10645
10646
|
* [Api set: Mailbox 1.8]
|
|
10646
10647
|
*
|
|
@@ -10648,6 +10649,18 @@ declare namespace Office {
|
|
|
10648
10649
|
*
|
|
10649
10650
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10650
10651
|
*
|
|
10652
|
+
* **Important**:
|
|
10653
|
+
*
|
|
10654
|
+
* - If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
|
|
10655
|
+
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
10656
|
+
*
|
|
10657
|
+
* - To add an inline Base64-encoded image to the body of a message or appointment being composed, use the
|
|
10658
|
+
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body| Body API} methods, such as `prependAsync`, `setSignatureAsync`, or `setAsync`.
|
|
10659
|
+
* If you use `Office.context.mailbox.item.body.setAsync` to insert the image, first call `Office.context.mailbox.item.body.getAsync` to get the current body of the item.
|
|
10660
|
+
* Otherwise, the image won't render in the body once it's inserted. For an example, see the
|
|
10661
|
+
* {@link https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/outlook/20-item-body/add-inline-base64-image.yaml | Add inline Base64-encoded image to message or appointment body (Compose)}
|
|
10662
|
+
* sample in {@link https://learn.microsoft.com/office/dev/add-ins/overview/explore-with-script-lab | Script Lab}.
|
|
10663
|
+
*
|
|
10651
10664
|
* **Errors**:
|
|
10652
10665
|
*
|
|
10653
10666
|
* - `AttachmentSizeExceeded`: The attachment is larger than allowed.
|
|
@@ -10656,11 +10669,6 @@ declare namespace Office {
|
|
|
10656
10669
|
*
|
|
10657
10670
|
* - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
|
|
10658
10671
|
*
|
|
10659
|
-
* **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
|
|
10660
|
-
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
10661
|
-
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
10662
|
-
* For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
|
|
10663
|
-
*
|
|
10664
10672
|
* @param base64File - The Base64-encoded content of an image or file to be added to an email or event. The maximum length of the encoded string is 27,892,122 characters (about 25 MB).
|
|
10665
10673
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
10666
10674
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
@@ -16623,10 +16631,12 @@ declare namespace Office {
|
|
|
16623
16631
|
* - If you're using a data URL API (for example, `readAsDataURL`), you need to strip out the data URL prefix, then send the rest of the string to this API.
|
|
16624
16632
|
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
16625
16633
|
*
|
|
16626
|
-
* -
|
|
16627
|
-
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body
|
|
16628
|
-
*
|
|
16629
|
-
*
|
|
16634
|
+
* - To add an inline Base64-encoded image to the body of a message or appointment being composed, use the
|
|
16635
|
+
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body| Body API} methods, such as `prependAsync`, `setSignatureAsync`, or `setAsync`.
|
|
16636
|
+
* If you use `Office.context.mailbox.item.body.setAsync` to insert the image, first call `Office.context.mailbox.item.body.getAsync` to get the current body of the item.
|
|
16637
|
+
* Otherwise, the image won't render in the body once it's inserted. For an example, see the
|
|
16638
|
+
* {@link https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/outlook/20-item-body/add-inline-base64-image.yaml | Add inline Base64-encoded image to message or appointment body (Compose)}
|
|
16639
|
+
* sample in {@link https://learn.microsoft.com/office/dev/add-ins/overview/explore-with-script-lab | Script Lab}.
|
|
16630
16640
|
*
|
|
16631
16641
|
* **Errors**:
|
|
16632
16642
|
*
|
|
@@ -16669,10 +16679,12 @@ declare namespace Office {
|
|
|
16669
16679
|
* - If you're using a data URL API (for example, `readAsDataURL`), you need to strip out the data URL prefix, then send the rest of the string to this API.
|
|
16670
16680
|
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
16671
16681
|
*
|
|
16672
|
-
* -
|
|
16673
|
-
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body
|
|
16674
|
-
*
|
|
16675
|
-
*
|
|
16682
|
+
* - To add an inline Base64-encoded image to the body of a message or appointment being composed, use the
|
|
16683
|
+
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body| Body API} methods, such as `prependAsync`, `setSignatureAsync`, or `setAsync`.
|
|
16684
|
+
* If you use `Office.context.mailbox.item.body.setAsync` to insert the image, first call `Office.context.mailbox.item.body.getAsync` to get the current body of the item.
|
|
16685
|
+
* Otherwise, the image won't render in the body once it's inserted. For an example, see the
|
|
16686
|
+
* {@link https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/outlook/20-item-body/add-inline-base64-image.yaml | Add inline Base64-encoded image to message or appointment body (Compose)}
|
|
16687
|
+
* sample in {@link https://learn.microsoft.com/office/dev/add-ins/overview/explore-with-script-lab | Script Lab}.
|
|
16676
16688
|
*
|
|
16677
16689
|
* **Errors**:
|
|
16678
16690
|
*
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.469",
|
|
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",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "90c886cff7229a7fc1b7d2e701d34bf97f251a8b9e7fa1a2edbf331aa2f8165e",
|
|
50
50
|
"typeScriptVersion": "5.0"
|
|
51
51
|
}
|