@types/office-js 1.0.315 → 1.0.316
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 +24 -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: Tue,
|
|
11
|
+
* Last updated: Tue, 28 Feb 2023 21:32:42 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
|
@@ -9921,13 +9921,13 @@ declare namespace Office {
|
|
|
9921
9921
|
/**
|
|
9922
9922
|
* Adds a file to a message or appointment as an attachment.
|
|
9923
9923
|
*
|
|
9924
|
-
* The `addFileAttachmentFromBase64Async` method uploads the file from the
|
|
9924
|
+
* The `addFileAttachmentFromBase64Async` method uploads the file from the Base64 encoding and attaches it to the item in the compose form.
|
|
9925
9925
|
* This method returns the attachment identifier in the `asyncResult.value` object.
|
|
9926
9926
|
*
|
|
9927
9927
|
* You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
|
|
9928
9928
|
*
|
|
9929
9929
|
* **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.
|
|
9930
|
-
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of
|
|
9930
|
+
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
9931
9931
|
*
|
|
9932
9932
|
* @remarks
|
|
9933
9933
|
* [Api set: Mailbox 1.8]
|
|
@@ -9940,16 +9940,16 @@ declare namespace Office {
|
|
|
9940
9940
|
*
|
|
9941
9941
|
* - `AttachmentSizeExceeded`: The attachment is larger than allowed.
|
|
9942
9942
|
*
|
|
9943
|
-
* - `FileTypeNotSupported`: The attachment has an extension that
|
|
9943
|
+
* - `FileTypeNotSupported`: The attachment has an extension that isn't allowed.
|
|
9944
9944
|
*
|
|
9945
9945
|
* - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
|
|
9946
9946
|
*
|
|
9947
|
-
* **Note**: If you're adding an inline
|
|
9947
|
+
* **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
|
|
9948
9948
|
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
9949
|
-
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image
|
|
9949
|
+
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
9950
9950
|
* 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}.
|
|
9951
9951
|
*
|
|
9952
|
-
* @param base64File - The
|
|
9952
|
+
* @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).
|
|
9953
9953
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
9954
9954
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
9955
9955
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
@@ -9965,13 +9965,13 @@ declare namespace Office {
|
|
|
9965
9965
|
/**
|
|
9966
9966
|
* Adds a file to a message or appointment as an attachment.
|
|
9967
9967
|
*
|
|
9968
|
-
* The `addFileAttachmentFromBase64Async` method uploads the file from the
|
|
9968
|
+
* The `addFileAttachmentFromBase64Async` method uploads the file from the Base64 encoding and attaches it to the item in the compose form.
|
|
9969
9969
|
* This method returns the attachment identifier in the `asyncResult.value` object.
|
|
9970
9970
|
*
|
|
9971
9971
|
* You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
|
|
9972
9972
|
*
|
|
9973
9973
|
* **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.
|
|
9974
|
-
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of
|
|
9974
|
+
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
9975
9975
|
*
|
|
9976
9976
|
* @remarks
|
|
9977
9977
|
* [Api set: Mailbox 1.8]
|
|
@@ -9984,16 +9984,16 @@ declare namespace Office {
|
|
|
9984
9984
|
*
|
|
9985
9985
|
* - `AttachmentSizeExceeded`: The attachment is larger than allowed.
|
|
9986
9986
|
*
|
|
9987
|
-
* - `FileTypeNotSupported`: The attachment has an extension that
|
|
9987
|
+
* - `FileTypeNotSupported`: The attachment has an extension that isn't allowed.
|
|
9988
9988
|
*
|
|
9989
9989
|
* - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
|
|
9990
9990
|
*
|
|
9991
|
-
* **Note**: If you're adding an inline
|
|
9991
|
+
* **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
|
|
9992
9992
|
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
9993
|
-
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image
|
|
9993
|
+
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
9994
9994
|
* 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}.
|
|
9995
9995
|
*
|
|
9996
|
-
* @param base64File - The
|
|
9996
|
+
* @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).
|
|
9997
9997
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
9998
9998
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
9999
9999
|
* of type `Office.AsyncResult`.
|
|
@@ -14973,13 +14973,13 @@ declare namespace Office {
|
|
|
14973
14973
|
/**
|
|
14974
14974
|
* Adds a file to a message or appointment as an attachment.
|
|
14975
14975
|
*
|
|
14976
|
-
* The `addFileAttachmentFromBase64Async` method uploads the file from the
|
|
14976
|
+
* The `addFileAttachmentFromBase64Async` method uploads the file from the Base64 encoding and attaches it to the item in the compose form.
|
|
14977
14977
|
* This method returns the attachment identifier in the `asyncResult.value` object.
|
|
14978
14978
|
*
|
|
14979
14979
|
* You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
|
|
14980
14980
|
*
|
|
14981
14981
|
* **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.
|
|
14982
|
-
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of
|
|
14982
|
+
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
14983
14983
|
*
|
|
14984
14984
|
* @remarks
|
|
14985
14985
|
* [Api set: Mailbox 1.8]
|
|
@@ -14992,16 +14992,16 @@ declare namespace Office {
|
|
|
14992
14992
|
*
|
|
14993
14993
|
* - `AttachmentSizeExceeded`: The attachment is larger than allowed.
|
|
14994
14994
|
*
|
|
14995
|
-
* - `FileTypeNotSupported`: The attachment has an extension that
|
|
14995
|
+
* - `FileTypeNotSupported`: The attachment has an extension that isn't allowed.
|
|
14996
14996
|
*
|
|
14997
14997
|
* - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
|
|
14998
14998
|
*
|
|
14999
|
-
* **Note**: If you're adding an inline
|
|
14999
|
+
* **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
|
|
15000
15000
|
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
15001
|
-
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image
|
|
15001
|
+
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
15002
15002
|
* 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}.
|
|
15003
15003
|
*
|
|
15004
|
-
* @param base64File - The
|
|
15004
|
+
* @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).
|
|
15005
15005
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
15006
15006
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
15007
15007
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
@@ -15014,13 +15014,13 @@ declare namespace Office {
|
|
|
15014
15014
|
/**
|
|
15015
15015
|
* Adds a file to a message or appointment as an attachment.
|
|
15016
15016
|
*
|
|
15017
|
-
* The `addFileAttachmentFromBase64Async` method uploads the file from the
|
|
15017
|
+
* The `addFileAttachmentFromBase64Async` method uploads the file from the Base64 encoding and attaches it to the item in the compose form.
|
|
15018
15018
|
* This method returns the attachment identifier in the `asyncResult.value` object.
|
|
15019
15019
|
*
|
|
15020
15020
|
* You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
|
|
15021
15021
|
*
|
|
15022
15022
|
* **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.
|
|
15023
|
-
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of
|
|
15023
|
+
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
15024
15024
|
*
|
|
15025
15025
|
* @remarks
|
|
15026
15026
|
* [Api set: Mailbox 1.8]
|
|
@@ -15033,16 +15033,16 @@ declare namespace Office {
|
|
|
15033
15033
|
*
|
|
15034
15034
|
* - `AttachmentSizeExceeded`: The attachment is larger than allowed.
|
|
15035
15035
|
*
|
|
15036
|
-
* - `FileTypeNotSupported`: The attachment has an extension that
|
|
15036
|
+
* - `FileTypeNotSupported`: The attachment has an extension that isn't allowed.
|
|
15037
15037
|
*
|
|
15038
15038
|
* - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
|
|
15039
15039
|
*
|
|
15040
|
-
* **Note**: If you're adding an inline
|
|
15040
|
+
* **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
|
|
15041
15041
|
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
15042
|
-
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image
|
|
15042
|
+
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
15043
15043
|
* 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}.
|
|
15044
15044
|
*
|
|
15045
|
-
* @param base64File - The
|
|
15045
|
+
* @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).
|
|
15046
15046
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
15047
15047
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
15048
15048
|
* type Office.AsyncResult. On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
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.316",
|
|
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": "
|
|
48
|
+
"typesPublisherContentHash": "13d21fe2eb5ddeae15c8ee9dfcef62fdc9a9f904327153e0c582813a88bf70be",
|
|
49
49
|
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|