@types/office-js-preview 1.0.521 → 1.0.523
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +137 -72
- office-js-preview/package.json +3 -2
office-js-preview/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 24 Oct 2024 18:02:45 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -3578,7 +3578,8 @@ declare namespace Office {
|
|
|
3578
3578
|
*
|
|
3579
3579
|
* - In Outlook, this API isn't supported if you load an add-in in an Outlook.com or Gmail mailbox.
|
|
3580
3580
|
*
|
|
3581
|
-
* - In Outlook on the web, this API isn't supported if you use
|
|
3581
|
+
* - In Outlook on the web, this API isn't supported if you use Firefox with Enhanced Tracking Protection turned on.
|
|
3582
|
+
* This results in error 13001 ("The user is not signed into Office").
|
|
3582
3583
|
*
|
|
3583
3584
|
* - In Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows}, if you use the
|
|
3584
3585
|
* {@link https://learn.microsoft.com/javascript/api/office/office.ui#office-office-ui-displaydialogasync-member(1) | displayDialogAsync}
|
|
@@ -10090,6 +10091,12 @@ declare namespace Office {
|
|
|
10090
10091
|
* [Api set: Mailbox 1.3]
|
|
10091
10092
|
*
|
|
10092
10093
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
10094
|
+
*
|
|
10095
|
+
* **Important**: The Outlook REST v2.0 and beta endpoints are now deprecated. However, privately released and AppSource-hosted add-ins are able to use the REST service
|
|
10096
|
+
* until extended support ends for Outlook 2019 on October 14, 2025. Traffic from these add-ins is automatically identified for exemption. This exemption also
|
|
10097
|
+
* applies to new add-ins developed after March 31, 2024. Although add-ins are able to use the REST service until 2025, we highly encourage you to migrate your
|
|
10098
|
+
* add-ins to use {@link https://learn.microsoft.com/outlook/rest#outlook-rest-api-via-microsoft-graph | Microsoft Graph}. For guidance, see
|
|
10099
|
+
* {@link https://learn.microsoft.com/outlook/rest/compare-graph | Compare Microsoft Graph and Outlook REST API endpoints}.
|
|
10093
10100
|
*/
|
|
10094
10101
|
enum RestVersion {
|
|
10095
10102
|
/**
|
|
@@ -10938,14 +10945,11 @@ declare namespace Office {
|
|
|
10938
10945
|
*/
|
|
10939
10946
|
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10940
10947
|
/**
|
|
10941
|
-
* Asynchronously gets the
|
|
10948
|
+
* Asynchronously gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
10949
|
+
* of a saved item.
|
|
10942
10950
|
*
|
|
10943
10951
|
* When invoked, this method returns the item ID via the callback function.
|
|
10944
10952
|
*
|
|
10945
|
-
* **Note**: If your add-in calls `getItemIdAsync` on an item in compose mode (e.g., to get an `itemId` to use with EWS or the REST API),
|
|
10946
|
-
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
10947
|
-
* Until the item is synced, the `itemId` is not recognized and using it returns an error.
|
|
10948
|
-
*
|
|
10949
10953
|
* @remarks
|
|
10950
10954
|
* [Api set: Mailbox 1.8]
|
|
10951
10955
|
*
|
|
@@ -10953,6 +10957,15 @@ declare namespace Office {
|
|
|
10953
10957
|
*
|
|
10954
10958
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10955
10959
|
*
|
|
10960
|
+
* **Important**:
|
|
10961
|
+
*
|
|
10962
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
10963
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
10964
|
+
*
|
|
10965
|
+
* - If your add-in calls `getItemIdAsync` (for example, to get an item ID to use with EWS or the REST API),
|
|
10966
|
+
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
10967
|
+
* Until the item is synced, the item ID isn't recognized and using it returns an error.
|
|
10968
|
+
*
|
|
10956
10969
|
* **Errors**:
|
|
10957
10970
|
*
|
|
10958
10971
|
* - `ItemNotSaved`: The ID can't be retrieved until the item is saved.
|
|
@@ -10960,18 +10973,15 @@ declare namespace Office {
|
|
|
10960
10973
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10961
10974
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10962
10975
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10963
|
-
* of type `Office.AsyncResult`.
|
|
10976
|
+
* of type `Office.AsyncResult`. The EWS item ID of the item is returned in the `asyncResult.value` property.
|
|
10964
10977
|
*/
|
|
10965
10978
|
getItemIdAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10966
10979
|
/**
|
|
10967
|
-
* Asynchronously gets the
|
|
10980
|
+
* Asynchronously gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
10981
|
+
* of a saved item.
|
|
10968
10982
|
*
|
|
10969
10983
|
* When invoked, this method returns the item ID via the callback function.
|
|
10970
10984
|
*
|
|
10971
|
-
* **Note**: If your add-in calls `getItemIdAsync` on an item in compose mode (e.g., to get an `itemId` to use with EWS or the REST API),
|
|
10972
|
-
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
10973
|
-
* Until the item is synced, the `itemId` is not recognized and using it returns an error.
|
|
10974
|
-
*
|
|
10975
10985
|
* @remarks
|
|
10976
10986
|
* [Api set: Mailbox 1.8]
|
|
10977
10987
|
*
|
|
@@ -10979,12 +10989,21 @@ declare namespace Office {
|
|
|
10979
10989
|
*
|
|
10980
10990
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10981
10991
|
*
|
|
10992
|
+
* **Important**:
|
|
10993
|
+
*
|
|
10994
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
10995
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
10996
|
+
*
|
|
10997
|
+
* - If your add-in calls `getItemIdAsync` (for example, to get an item ID to use with EWS or the REST API),
|
|
10998
|
+
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
10999
|
+
* Until the item is synced, the item ID isn't recognized and using it returns an error.
|
|
11000
|
+
*
|
|
10982
11001
|
* **Errors**:
|
|
10983
11002
|
*
|
|
10984
11003
|
* - `ItemNotSaved`: The ID can't be retrieved until the item is saved.
|
|
10985
11004
|
*
|
|
10986
11005
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10987
|
-
* of type `Office.AsyncResult`.
|
|
11006
|
+
* of type `Office.AsyncResult`. The EWS item ID of the item is returned in the `asyncResult.value` property.
|
|
10988
11007
|
*/
|
|
10989
11008
|
getItemIdAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10990
11009
|
/**
|
|
@@ -11271,7 +11290,12 @@ declare namespace Office {
|
|
|
11271
11290
|
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
11272
11291
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
11273
11292
|
*
|
|
11274
|
-
* -
|
|
11293
|
+
* - The identifier returned is the same as the
|
|
11294
|
+
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}.
|
|
11295
|
+
* The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
11296
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
11297
|
+
*
|
|
11298
|
+
* - If your add-in calls `saveAsync` to get an item ID to use with EWS or the REST API, be aware that
|
|
11275
11299
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
11276
11300
|
* Until the item is synced, using the item ID will return an error.
|
|
11277
11301
|
*
|
|
@@ -11286,7 +11310,7 @@ declare namespace Office {
|
|
|
11286
11310
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
11287
11311
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
11288
11312
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
11289
|
-
* which is an `Office.AsyncResult` object. The appointment ID is returned in the `asyncResult.value` property.
|
|
11313
|
+
* which is an `Office.AsyncResult` object. The EWS appointment ID is returned in the `asyncResult.value` property.
|
|
11290
11314
|
*/
|
|
11291
11315
|
saveAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11292
11316
|
/**
|
|
@@ -11311,7 +11335,12 @@ declare namespace Office {
|
|
|
11311
11335
|
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
11312
11336
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
11313
11337
|
*
|
|
11314
|
-
* -
|
|
11338
|
+
* - The identifier returned is the same as the
|
|
11339
|
+
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}.
|
|
11340
|
+
* The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
11341
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
11342
|
+
*
|
|
11343
|
+
* - If your add-in calls `saveAsync` to get an item ID to use with EWS or the REST API, be aware that
|
|
11315
11344
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
11316
11345
|
* Until the item is synced, using the item ID will return an error.
|
|
11317
11346
|
*
|
|
@@ -11324,7 +11353,7 @@ declare namespace Office {
|
|
|
11324
11353
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
11325
11354
|
*
|
|
11326
11355
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
11327
|
-
* which is an `Office.AsyncResult` object. The appointment ID is returned in the `asyncResult.value` property.
|
|
11356
|
+
* which is an `Office.AsyncResult` object. The EWS appointment ID is returned in the `asyncResult.value` property.
|
|
11328
11357
|
*/
|
|
11329
11358
|
saveAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11330
11359
|
/**
|
|
@@ -11690,24 +11719,23 @@ declare namespace Office {
|
|
|
11690
11719
|
*/
|
|
11691
11720
|
itemClass: string;
|
|
11692
11721
|
/**
|
|
11693
|
-
* Gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services item identifier}
|
|
11694
|
-
*
|
|
11695
|
-
*
|
|
11696
|
-
* The `itemId` property is not available in compose mode.
|
|
11697
|
-
* If an item identifier is required, the `saveAsync` method can be used to save the item to the store, which will return the item identifier
|
|
11698
|
-
* in the `asyncResult.value` parameter in the callback function.
|
|
11699
|
-
*
|
|
11700
|
-
* **Note**: The identifier returned by the `itemId` property is the same as the
|
|
11701
|
-
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services item identifier}.
|
|
11702
|
-
* The `itemId` property is not identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
11703
|
-
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
11704
|
-
* For more details, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-rest-api#get-the-item-id | Use the Outlook REST APIs from an Outlook add-in}.
|
|
11722
|
+
* Gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
11723
|
+
* of the current item.
|
|
11705
11724
|
*
|
|
11706
11725
|
* @remarks
|
|
11707
11726
|
*
|
|
11708
11727
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
11709
11728
|
*
|
|
11710
11729
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11730
|
+
*
|
|
11731
|
+
* **Important**:
|
|
11732
|
+
*
|
|
11733
|
+
* - The `itemId` property isn't available in compose mode.
|
|
11734
|
+
* If an item identifier is required, the `Office.context.mailbox.item.saveAsync` method can be used to save the item to the store, which will return the item identifier
|
|
11735
|
+
* in the `asyncResult.value` parameter in the callback function. If the item is already saved, you can call the `Office.context.mailbox.item.getItemIdAsync` method instead.
|
|
11736
|
+
*
|
|
11737
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
11738
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
11711
11739
|
*/
|
|
11712
11740
|
itemId: string;
|
|
11713
11741
|
/**
|
|
@@ -15080,15 +15108,6 @@ declare namespace Office {
|
|
|
15080
15108
|
/**
|
|
15081
15109
|
* Gets the URL of the REST endpoint for this email account.
|
|
15082
15110
|
*
|
|
15083
|
-
* Your app must have the **read item** permission specified in its manifest to call the `restUrl` member in read mode.
|
|
15084
|
-
*
|
|
15085
|
-
* In compose mode you must call the `saveAsync` method before you can use the `restUrl` member.
|
|
15086
|
-
* Your app must have **read/write item** permissions to call the `saveAsync` method.
|
|
15087
|
-
*
|
|
15088
|
-
* However, in delegate or shared scenarios, you should instead use the `targetRestUrl` property of the
|
|
15089
|
-
* {@link Office.SharedProperties | SharedProperties} object (introduced in requirement set 1.8). For more information,
|
|
15090
|
-
* see the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/delegate-access | shared folders and shared mailbox} article.
|
|
15091
|
-
*
|
|
15092
15111
|
* @remarks
|
|
15093
15112
|
* [Api set: Mailbox 1.5]
|
|
15094
15113
|
*
|
|
@@ -15096,7 +15115,21 @@ declare namespace Office {
|
|
|
15096
15115
|
*
|
|
15097
15116
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
15098
15117
|
*
|
|
15099
|
-
*
|
|
15118
|
+
* **Important**:
|
|
15119
|
+
*
|
|
15120
|
+
* - The Outlook REST v2.0 and beta endpoints are now deprecated. However, privately released and AppSource-hosted add-ins are able to use the REST service
|
|
15121
|
+
* until extended support ends for Outlook 2019 on October 14, 2025. Traffic from these add-ins is automatically identified for exemption. This exemption also
|
|
15122
|
+
* applies to new add-ins developed after March 31, 2024. Although add-ins are able to use the REST service until 2025, we highly encourage you to migrate your
|
|
15123
|
+
* add-ins to use {@link https://learn.microsoft.com/outlook/rest#outlook-rest-api-via-microsoft-graph | Microsoft Graph}. For guidance, see
|
|
15124
|
+
* {@link https://learn.microsoft.com/outlook/rest/compare-graph | Compare Microsoft Graph and Outlook REST API endpoints}.
|
|
15125
|
+
*
|
|
15126
|
+
* - Your add-in must have the **read item** permission specified in its manifest to call the `restUrl` member in read mode.
|
|
15127
|
+
*
|
|
15128
|
+
* - In compose mode you must call the `saveAsync` method before you can use the `restUrl` member.
|
|
15129
|
+
* Your add-in must have **read/write item** permissions to call the `saveAsync` method.
|
|
15130
|
+
* However, in delegate or shared scenarios, you should instead use the `targetRestUrl` property of the
|
|
15131
|
+
* {@link Office.SharedProperties | SharedProperties} object (introduced in requirement set 1.8). For more information,
|
|
15132
|
+
* see the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/delegate-access | shared folders and shared mailbox} article.
|
|
15100
15133
|
*/
|
|
15101
15134
|
restUrl: string;
|
|
15102
15135
|
/**
|
|
@@ -15159,10 +15192,17 @@ declare namespace Office {
|
|
|
15159
15192
|
*
|
|
15160
15193
|
* **Important**:
|
|
15161
15194
|
*
|
|
15195
|
+
* - In October 2024, legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
|
|
15196
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens will be turned off by default for all Exchange Online tenants.
|
|
15197
|
+
* This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
|
|
15198
|
+
* which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
|
|
15199
|
+
* Nested app authentication is the recommended approach for tokens going forward. For more information, see our {@link https://aka.ms/NAApreviewblog | blog post} and
|
|
15200
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens | FAQ page}.
|
|
15201
|
+
*
|
|
15162
15202
|
* - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
15163
15203
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
15164
15204
|
*
|
|
15165
|
-
* - Item IDs retrieved via a REST API (such as
|
|
15205
|
+
* - Item IDs retrieved via a REST API (such as {@link https://graph.microsoft.io/ | Microsoft Graph}) use a different format than the format used by EWS.
|
|
15166
15206
|
* The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
|
|
15167
15207
|
*
|
|
15168
15208
|
* @param id - The ID to be converted into EWS format. This string can be an item ID formatted for the Outlook REST APIs or a conversation ID retrieved from
|
|
@@ -15206,10 +15246,8 @@ declare namespace Office {
|
|
|
15206
15246
|
* - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
15207
15247
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
15208
15248
|
*
|
|
15209
|
-
* - Item IDs retrieved via Exchange Web Services (EWS) or via the `itemId` property use a different format than the format used by REST APIs (such as
|
|
15210
|
-
* {@link https://
|
|
15211
|
-
* or the {@link https://graph.microsoft.io/ | Microsoft Graph}).
|
|
15212
|
-
* The `convertToRestId` method converts an EWS-formatted ID into the proper format for REST.
|
|
15249
|
+
* - Item IDs retrieved via Exchange Web Services (EWS) or via the `itemId` property use a different format than the format used by REST APIs (such as
|
|
15250
|
+
* {@link https://graph.microsoft.io/ | Microsoft Graph}). The `convertToRestId` method converts an EWS-formatted ID into the proper format for REST.
|
|
15213
15251
|
*
|
|
15214
15252
|
* @param id - The ID to be converted into REST format. This string can be an item ID formatted for EWS that's usually retrieved from
|
|
15215
15253
|
* `Office.context.mailbox.item.itemId`, a conversation ID retrieved from `Office.context.mailbox.item.conversationId`, or a
|
|
@@ -15678,6 +15716,12 @@ declare namespace Office {
|
|
|
15678
15716
|
* Nested app authentication is the recommended approach for tokens going forward. For more information, see our {@link https://aka.ms/NAApreviewblog | blog post} and
|
|
15679
15717
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens | FAQ page}.
|
|
15680
15718
|
*
|
|
15719
|
+
* - The Outlook REST v2.0 and beta endpoints are now deprecated. However, privately released and AppSource-hosted add-ins are able to use the REST service
|
|
15720
|
+
* until extended support ends for Outlook 2019 on October 14, 2025. Traffic from these add-ins is automatically identified for exemption. This exemption also
|
|
15721
|
+
* applies to new add-ins developed after March 31, 2024. Although add-ins are able to use the REST service until 2025, we highly encourage you to migrate your
|
|
15722
|
+
* add-ins to use {@link https://learn.microsoft.com/outlook/rest#outlook-rest-api-via-microsoft-graph | Microsoft Graph}. For guidance, see
|
|
15723
|
+
* {@link https://learn.microsoft.com/outlook/rest/compare-graph | Compare Microsoft Graph and Outlook REST API endpoints}.
|
|
15724
|
+
*
|
|
15681
15725
|
* - This method isn't supported if you load an add-in in an Outlook.com or Gmail mailbox.
|
|
15682
15726
|
*
|
|
15683
15727
|
* - This method is only supported in read mode in Outlook on Android and on iOS. For more information on supported APIs in Outlook mobile, see
|
|
@@ -17249,14 +17293,11 @@ declare namespace Office {
|
|
|
17249
17293
|
*/
|
|
17250
17294
|
getItemClassAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17251
17295
|
/**
|
|
17252
|
-
* Asynchronously gets the
|
|
17296
|
+
* Asynchronously gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
17297
|
+
* of a saved item.
|
|
17253
17298
|
*
|
|
17254
17299
|
* When invoked, this method returns the item ID via the callback function.
|
|
17255
17300
|
*
|
|
17256
|
-
* **Note**: If your add-in calls `getItemIdAsync` on an item in compose mode (e.g., to get an `itemId` to use with EWS or the REST API),
|
|
17257
|
-
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
17258
|
-
* Until the item is synced, the `itemId` is not recognized and using it returns an error.
|
|
17259
|
-
*
|
|
17260
17301
|
* @remarks
|
|
17261
17302
|
* [Api set: Mailbox 1.8]
|
|
17262
17303
|
*
|
|
@@ -17264,6 +17305,15 @@ declare namespace Office {
|
|
|
17264
17305
|
*
|
|
17265
17306
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
17266
17307
|
*
|
|
17308
|
+
* **Important**:
|
|
17309
|
+
*
|
|
17310
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17311
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17312
|
+
*
|
|
17313
|
+
* - If your add-in calls `getItemIdAsync` (for example, to get an item ID to use with EWS or the REST API),
|
|
17314
|
+
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
17315
|
+
* Until the item is synced, the item ID isn't recognized and using it returns an error.
|
|
17316
|
+
*
|
|
17267
17317
|
* **Errors**:
|
|
17268
17318
|
*
|
|
17269
17319
|
* - `ItemNotSaved`: The ID can't be retrieved until the item is saved.
|
|
@@ -17271,18 +17321,15 @@ declare namespace Office {
|
|
|
17271
17321
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17272
17322
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17273
17323
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17274
|
-
* of type `Office.AsyncResult`.
|
|
17324
|
+
* of type `Office.AsyncResult`. The EWS item ID of the item is returned in the `asyncResult.value` property.
|
|
17275
17325
|
*/
|
|
17276
17326
|
getItemIdAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17277
17327
|
/**
|
|
17278
|
-
* Asynchronously gets the
|
|
17328
|
+
* Asynchronously gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
17329
|
+
* of a saved item.
|
|
17279
17330
|
*
|
|
17280
17331
|
* When invoked, this method returns the item ID via the callback function.
|
|
17281
17332
|
*
|
|
17282
|
-
* **Note**: If your add-in calls `getItemIdAsync` on an item in compose mode (e.g., to get an `itemId` to use with EWS or the REST API),
|
|
17283
|
-
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
17284
|
-
* Until the item is synced, the `itemId` is not recognized and using it returns an error.
|
|
17285
|
-
*
|
|
17286
17333
|
* @remarks
|
|
17287
17334
|
* [Api set: Mailbox 1.8]
|
|
17288
17335
|
*
|
|
@@ -17290,12 +17337,21 @@ declare namespace Office {
|
|
|
17290
17337
|
*
|
|
17291
17338
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
17292
17339
|
*
|
|
17340
|
+
* **Important**:
|
|
17341
|
+
*
|
|
17342
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17343
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17344
|
+
*
|
|
17345
|
+
* - If your add-in calls `getItemIdAsync` (for example, to get an item ID to use with EWS or the REST API),
|
|
17346
|
+
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
17347
|
+
* Until the item is synced, the item ID isn't recognized and using it returns an error.
|
|
17348
|
+
*
|
|
17293
17349
|
* **Errors**:
|
|
17294
17350
|
*
|
|
17295
17351
|
* - `ItemNotSaved`: The ID can't be retrieved until the item is saved.
|
|
17296
17352
|
*
|
|
17297
17353
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17298
|
-
* of type `Office.AsyncResult`.
|
|
17354
|
+
* of type `Office.AsyncResult`. The EWS item ID of the item is returned in the `asyncResult.value` property.
|
|
17299
17355
|
*/
|
|
17300
17356
|
getItemIdAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17301
17357
|
/**
|
|
@@ -17626,7 +17682,12 @@ declare namespace Office {
|
|
|
17626
17682
|
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
17627
17683
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
17628
17684
|
*
|
|
17629
|
-
* -
|
|
17685
|
+
* - The identifier returned is the same as the
|
|
17686
|
+
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}.
|
|
17687
|
+
* The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17688
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17689
|
+
*
|
|
17690
|
+
* - If your add-in calls `saveAsync` to get an item ID to use with EWS or the REST API, be aware that
|
|
17630
17691
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
17631
17692
|
* Until the item is synced, using the item ID will return an error.
|
|
17632
17693
|
*
|
|
@@ -17643,7 +17704,7 @@ declare namespace Office {
|
|
|
17643
17704
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17644
17705
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17645
17706
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
17646
|
-
* which is an `Office.AsyncResult` object. The message ID is returned in the `asyncResult.value` property.
|
|
17707
|
+
* which is an `Office.AsyncResult` object. The EWS message ID is returned in the `asyncResult.value` property.
|
|
17647
17708
|
*/
|
|
17648
17709
|
saveAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17649
17710
|
/**
|
|
@@ -17664,7 +17725,12 @@ declare namespace Office {
|
|
|
17664
17725
|
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
17665
17726
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
17666
17727
|
*
|
|
17667
|
-
* -
|
|
17728
|
+
* - The identifier returned is the same as the
|
|
17729
|
+
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}.
|
|
17730
|
+
* The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17731
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17732
|
+
*
|
|
17733
|
+
* - If your add-in calls `saveAsync` to get an item ID to use with EWS or the REST API, be aware that
|
|
17668
17734
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
17669
17735
|
* Until the item is synced, using the item ID will return an error.
|
|
17670
17736
|
*
|
|
@@ -17679,7 +17745,7 @@ declare namespace Office {
|
|
|
17679
17745
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
17680
17746
|
*
|
|
17681
17747
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
17682
|
-
* which is an `Office.AsyncResult` object. The message ID is returned in the `asyncResult.value` property.
|
|
17748
|
+
* which is an `Office.AsyncResult` object. The EWS message ID is returned in the `asyncResult.value` property.
|
|
17683
17749
|
*/
|
|
17684
17750
|
saveAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17685
17751
|
/**
|
|
@@ -17969,24 +18035,23 @@ declare namespace Office {
|
|
|
17969
18035
|
*/
|
|
17970
18036
|
itemClass: string;
|
|
17971
18037
|
/**
|
|
17972
|
-
* Gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services item identifier}
|
|
17973
|
-
*
|
|
17974
|
-
*
|
|
17975
|
-
* The `itemId` property is not available in compose mode.
|
|
17976
|
-
* If an item identifier is required, the `saveAsync` method can be used to save the item to the store, which will return the item identifier
|
|
17977
|
-
* in the `asyncResult.value` parameter in the callback function.
|
|
17978
|
-
*
|
|
17979
|
-
* **Note**: The identifier returned by the `itemId` property is the same as the
|
|
17980
|
-
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services item identifier}.
|
|
17981
|
-
* The `itemId` property is not identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17982
|
-
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17983
|
-
* For more details, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-rest-api#get-the-item-id | Use the Outlook REST APIs from an Outlook add-in}.
|
|
18038
|
+
* Gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
18039
|
+
* of the current item.
|
|
17984
18040
|
*
|
|
17985
18041
|
* @remarks
|
|
17986
18042
|
*
|
|
17987
18043
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17988
18044
|
*
|
|
17989
18045
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
18046
|
+
*
|
|
18047
|
+
* **Important**:
|
|
18048
|
+
*
|
|
18049
|
+
* - The `itemId` property isn't available in compose mode.
|
|
18050
|
+
* If an item identifier is required, the `Office.context.mailbox.item.saveAsync` method can be used to save the item to the store, which will return the item identifier
|
|
18051
|
+
* in the `asyncResult.value` parameter in the callback function. If the item is already saved, you can call the `Office.context.mailbox.item.getItemIdAsync` method instead.
|
|
18052
|
+
*
|
|
18053
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
18054
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17990
18055
|
*/
|
|
17991
18056
|
itemId: string;
|
|
17992
18057
|
/**
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.523",
|
|
4
4
|
"description": "TypeScript definitions for office-js-preview",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"
|
|
48
|
+
"peerDependencies": {},
|
|
49
|
+
"typesPublisherContentHash": "283b1051ca1471f34157b1c513eb6eb2521b7c3cc00f42971b304be4f99b9b52",
|
|
49
50
|
"typeScriptVersion": "4.8",
|
|
50
51
|
"nonNpm": true
|
|
51
52
|
}
|