@types/office-js 1.0.434 → 1.0.435
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 +135 -72
- 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, 17 Oct 2024 17:36:59 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -10039,6 +10039,12 @@ declare namespace Office {
|
|
|
10039
10039
|
* [Api set: Mailbox 1.3]
|
|
10040
10040
|
*
|
|
10041
10041
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
10042
|
+
*
|
|
10043
|
+
* **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
|
|
10044
|
+
* until extended support ends for Outlook 2019 on October 14, 2025. Traffic from these add-ins is automatically identified for exemption. This exemption also
|
|
10045
|
+
* 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
|
|
10046
|
+
* add-ins to use {@link https://learn.microsoft.com/outlook/rest#outlook-rest-api-via-microsoft-graph | Microsoft Graph}. For guidance, see
|
|
10047
|
+
* {@link https://learn.microsoft.com/outlook/rest/compare-graph | Compare Microsoft Graph and Outlook REST API endpoints}.
|
|
10042
10048
|
*/
|
|
10043
10049
|
enum RestVersion {
|
|
10044
10050
|
/**
|
|
@@ -10874,14 +10880,11 @@ declare namespace Office {
|
|
|
10874
10880
|
*/
|
|
10875
10881
|
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10876
10882
|
/**
|
|
10877
|
-
* Asynchronously gets the
|
|
10883
|
+
* Asynchronously gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
10884
|
+
* of a saved item.
|
|
10878
10885
|
*
|
|
10879
10886
|
* When invoked, this method returns the item ID via the callback function.
|
|
10880
10887
|
*
|
|
10881
|
-
* **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),
|
|
10882
|
-
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
10883
|
-
* Until the item is synced, the `itemId` is not recognized and using it returns an error.
|
|
10884
|
-
*
|
|
10885
10888
|
* @remarks
|
|
10886
10889
|
* [Api set: Mailbox 1.8]
|
|
10887
10890
|
*
|
|
@@ -10889,6 +10892,15 @@ declare namespace Office {
|
|
|
10889
10892
|
*
|
|
10890
10893
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10891
10894
|
*
|
|
10895
|
+
* **Important**:
|
|
10896
|
+
*
|
|
10897
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
10898
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
10899
|
+
*
|
|
10900
|
+
* - If your add-in calls `getItemIdAsync` (for example, to get an item ID to use with EWS or the REST API),
|
|
10901
|
+
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
10902
|
+
* Until the item is synced, the item ID isn't recognized and using it returns an error.
|
|
10903
|
+
*
|
|
10892
10904
|
* **Errors**:
|
|
10893
10905
|
*
|
|
10894
10906
|
* - `ItemNotSaved`: The ID can't be retrieved until the item is saved.
|
|
@@ -10896,18 +10908,15 @@ declare namespace Office {
|
|
|
10896
10908
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10897
10909
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10898
10910
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10899
|
-
* of type `Office.AsyncResult`.
|
|
10911
|
+
* of type `Office.AsyncResult`. The EWS item ID of the item is returned in the `asyncResult.value` property.
|
|
10900
10912
|
*/
|
|
10901
10913
|
getItemIdAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10902
10914
|
/**
|
|
10903
|
-
* Asynchronously gets the
|
|
10915
|
+
* Asynchronously gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
10916
|
+
* of a saved item.
|
|
10904
10917
|
*
|
|
10905
10918
|
* When invoked, this method returns the item ID via the callback function.
|
|
10906
10919
|
*
|
|
10907
|
-
* **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),
|
|
10908
|
-
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
10909
|
-
* Until the item is synced, the `itemId` is not recognized and using it returns an error.
|
|
10910
|
-
*
|
|
10911
10920
|
* @remarks
|
|
10912
10921
|
* [Api set: Mailbox 1.8]
|
|
10913
10922
|
*
|
|
@@ -10915,12 +10924,21 @@ declare namespace Office {
|
|
|
10915
10924
|
*
|
|
10916
10925
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10917
10926
|
*
|
|
10927
|
+
* **Important**:
|
|
10928
|
+
*
|
|
10929
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
10930
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
10931
|
+
*
|
|
10932
|
+
* - If your add-in calls `getItemIdAsync` (for example, to get an item ID to use with EWS or the REST API),
|
|
10933
|
+
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
10934
|
+
* Until the item is synced, the item ID isn't recognized and using it returns an error.
|
|
10935
|
+
*
|
|
10918
10936
|
* **Errors**:
|
|
10919
10937
|
*
|
|
10920
10938
|
* - `ItemNotSaved`: The ID can't be retrieved until the item is saved.
|
|
10921
10939
|
*
|
|
10922
10940
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10923
|
-
* of type `Office.AsyncResult`.
|
|
10941
|
+
* of type `Office.AsyncResult`. The EWS item ID of the item is returned in the `asyncResult.value` property.
|
|
10924
10942
|
*/
|
|
10925
10943
|
getItemIdAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10926
10944
|
/**
|
|
@@ -11211,7 +11229,12 @@ declare namespace Office {
|
|
|
11211
11229
|
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
11212
11230
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
11213
11231
|
*
|
|
11214
|
-
* -
|
|
11232
|
+
* - The identifier returned is the same as the
|
|
11233
|
+
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}.
|
|
11234
|
+
* The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
11235
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
11236
|
+
*
|
|
11237
|
+
* - If your add-in calls `saveAsync` to get an item ID to use with EWS or the REST API, be aware that
|
|
11215
11238
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
11216
11239
|
* Until the item is synced, using the item ID will return an error.
|
|
11217
11240
|
*
|
|
@@ -11226,7 +11249,7 @@ declare namespace Office {
|
|
|
11226
11249
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
11227
11250
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
11228
11251
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
11229
|
-
* which is an `Office.AsyncResult` object. The appointment ID is returned in the `asyncResult.value` property.
|
|
11252
|
+
* which is an `Office.AsyncResult` object. The EWS appointment ID is returned in the `asyncResult.value` property.
|
|
11230
11253
|
*/
|
|
11231
11254
|
saveAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11232
11255
|
/**
|
|
@@ -11251,7 +11274,12 @@ declare namespace Office {
|
|
|
11251
11274
|
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
11252
11275
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
11253
11276
|
*
|
|
11254
|
-
* -
|
|
11277
|
+
* - The identifier returned is the same as the
|
|
11278
|
+
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}.
|
|
11279
|
+
* The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
11280
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
11281
|
+
*
|
|
11282
|
+
* - If your add-in calls `saveAsync` to get an item ID to use with EWS or the REST API, be aware that
|
|
11255
11283
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
11256
11284
|
* Until the item is synced, using the item ID will return an error.
|
|
11257
11285
|
*
|
|
@@ -11264,7 +11292,7 @@ declare namespace Office {
|
|
|
11264
11292
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
11265
11293
|
*
|
|
11266
11294
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
11267
|
-
* which is an `Office.AsyncResult` object. The appointment ID is returned in the `asyncResult.value` property.
|
|
11295
|
+
* which is an `Office.AsyncResult` object. The EWS appointment ID is returned in the `asyncResult.value` property.
|
|
11268
11296
|
*/
|
|
11269
11297
|
saveAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11270
11298
|
/**
|
|
@@ -11617,24 +11645,23 @@ declare namespace Office {
|
|
|
11617
11645
|
*/
|
|
11618
11646
|
itemClass: string;
|
|
11619
11647
|
/**
|
|
11620
|
-
* Gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services item identifier}
|
|
11621
|
-
*
|
|
11622
|
-
*
|
|
11623
|
-
* The `itemId` property is not available in compose mode.
|
|
11624
|
-
* 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
|
|
11625
|
-
* in the `asyncResult.value` parameter in the callback function.
|
|
11626
|
-
*
|
|
11627
|
-
* **Note**: The identifier returned by the `itemId` property is the same as the
|
|
11628
|
-
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services item identifier}.
|
|
11629
|
-
* The `itemId` property is not identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
11630
|
-
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
11631
|
-
* 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}.
|
|
11648
|
+
* Gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
11649
|
+
* of the current item.
|
|
11632
11650
|
*
|
|
11633
11651
|
* @remarks
|
|
11634
11652
|
*
|
|
11635
11653
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
11636
11654
|
*
|
|
11637
11655
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11656
|
+
*
|
|
11657
|
+
* **Important**:
|
|
11658
|
+
*
|
|
11659
|
+
* - The `itemId` property isn't available in compose mode.
|
|
11660
|
+
* 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
|
|
11661
|
+
* 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.
|
|
11662
|
+
*
|
|
11663
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
11664
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
11638
11665
|
*/
|
|
11639
11666
|
itemId: string;
|
|
11640
11667
|
/**
|
|
@@ -14821,16 +14848,6 @@ declare namespace Office {
|
|
|
14821
14848
|
/**
|
|
14822
14849
|
* Gets the URL of the REST endpoint for this email account.
|
|
14823
14850
|
*
|
|
14824
|
-
* Your app must have the **read item** permission specified in its manifest to call the `restUrl` member in read mode.
|
|
14825
|
-
*
|
|
14826
|
-
* In compose mode you must call the `saveAsync` method before you can use the `restUrl` member.
|
|
14827
|
-
* Your app must have **read/write item** permissions to call the `saveAsync` method.
|
|
14828
|
-
*
|
|
14829
|
-
* However, in delegate or shared scenarios, you should instead use the `targetRestUrl` property of the
|
|
14830
|
-
* {@link https://learn.microsoft.com/javascript/api/outlook/office.sharedproperties?view=outlook-js-1.8 | SharedProperties} object
|
|
14831
|
-
* (introduced in requirement set 1.8). For more information, see the
|
|
14832
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/delegate-access | delegate access} article.
|
|
14833
|
-
*
|
|
14834
14851
|
* @remarks
|
|
14835
14852
|
* [Api set: Mailbox 1.5]
|
|
14836
14853
|
*
|
|
@@ -14838,7 +14855,21 @@ declare namespace Office {
|
|
|
14838
14855
|
*
|
|
14839
14856
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
14840
14857
|
*
|
|
14841
|
-
*
|
|
14858
|
+
* **Important**:
|
|
14859
|
+
*
|
|
14860
|
+
* - 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
|
|
14861
|
+
* until extended support ends for Outlook 2019 on October 14, 2025. Traffic from these add-ins is automatically identified for exemption. This exemption also
|
|
14862
|
+
* 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
|
|
14863
|
+
* add-ins to use {@link https://learn.microsoft.com/outlook/rest#outlook-rest-api-via-microsoft-graph | Microsoft Graph}. For guidance, see
|
|
14864
|
+
* {@link https://learn.microsoft.com/outlook/rest/compare-graph | Compare Microsoft Graph and Outlook REST API endpoints}.
|
|
14865
|
+
*
|
|
14866
|
+
* - Your add-in must have the **read item** permission specified in its manifest to call the `restUrl` member in read mode.
|
|
14867
|
+
*
|
|
14868
|
+
* - In compose mode you must call the `saveAsync` method before you can use the `restUrl` member.
|
|
14869
|
+
* Your add-in must have **read/write item** permissions to call the `saveAsync` method.
|
|
14870
|
+
* However, in delegate or shared scenarios, you should instead use the `targetRestUrl` property of the
|
|
14871
|
+
* {@link Office.SharedProperties | SharedProperties} object (introduced in requirement set 1.8). For more information,
|
|
14872
|
+
* see the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/delegate-access | shared folders and shared mailbox} article.
|
|
14842
14873
|
*/
|
|
14843
14874
|
restUrl: string;
|
|
14844
14875
|
/**
|
|
@@ -14901,10 +14932,17 @@ declare namespace Office {
|
|
|
14901
14932
|
*
|
|
14902
14933
|
* **Important**:
|
|
14903
14934
|
*
|
|
14935
|
+
* - In October 2024, legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
|
|
14936
|
+
* {@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.
|
|
14937
|
+
* 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},
|
|
14938
|
+
* which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
|
|
14939
|
+
* Nested app authentication is the recommended approach for tokens going forward. For more information, see our {@link https://aka.ms/NAApreviewblog | blog post} and
|
|
14940
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens | FAQ page}.
|
|
14941
|
+
*
|
|
14904
14942
|
* - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
14905
14943
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
14906
14944
|
*
|
|
14907
|
-
* - Item IDs retrieved via a REST API (such as
|
|
14945
|
+
* - 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.
|
|
14908
14946
|
* The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
|
|
14909
14947
|
*
|
|
14910
14948
|
* @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
|
|
@@ -14948,10 +14986,8 @@ declare namespace Office {
|
|
|
14948
14986
|
* - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
14949
14987
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
14950
14988
|
*
|
|
14951
|
-
* - 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
|
|
14952
|
-
* {@link https://
|
|
14953
|
-
* or the {@link https://graph.microsoft.io/ | Microsoft Graph}).
|
|
14954
|
-
* The `convertToRestId` method converts an EWS-formatted ID into the proper format for REST.
|
|
14989
|
+
* - 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
|
|
14990
|
+
* {@link https://graph.microsoft.io/ | Microsoft Graph}). The `convertToRestId` method converts an EWS-formatted ID into the proper format for REST.
|
|
14955
14991
|
*
|
|
14956
14992
|
* @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
|
|
14957
14993
|
* `Office.context.mailbox.item.itemId`, a conversation ID retrieved from `Office.context.mailbox.item.conversationId`, or a
|
|
@@ -15420,6 +15456,12 @@ declare namespace Office {
|
|
|
15420
15456
|
* Nested app authentication is the recommended approach for tokens going forward. For more information, see our {@link https://aka.ms/NAApreviewblog | blog post} and
|
|
15421
15457
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens | FAQ page}.
|
|
15422
15458
|
*
|
|
15459
|
+
* - 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
|
|
15460
|
+
* until extended support ends for Outlook 2019 on October 14, 2025. Traffic from these add-ins is automatically identified for exemption. This exemption also
|
|
15461
|
+
* 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
|
|
15462
|
+
* add-ins to use {@link https://learn.microsoft.com/outlook/rest#outlook-rest-api-via-microsoft-graph | Microsoft Graph}. For guidance, see
|
|
15463
|
+
* {@link https://learn.microsoft.com/outlook/rest/compare-graph | Compare Microsoft Graph and Outlook REST API endpoints}.
|
|
15464
|
+
*
|
|
15423
15465
|
* - This method isn't supported if you load an add-in in an Outlook.com or Gmail mailbox.
|
|
15424
15466
|
*
|
|
15425
15467
|
* - 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
|
|
@@ -16991,14 +17033,11 @@ declare namespace Office {
|
|
|
16991
17033
|
*/
|
|
16992
17034
|
getItemClassAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16993
17035
|
/**
|
|
16994
|
-
* Asynchronously gets the
|
|
17036
|
+
* Asynchronously gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
17037
|
+
* of a saved item.
|
|
16995
17038
|
*
|
|
16996
17039
|
* When invoked, this method returns the item ID via the callback function.
|
|
16997
17040
|
*
|
|
16998
|
-
* **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),
|
|
16999
|
-
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
17000
|
-
* Until the item is synced, the `itemId` is not recognized and using it returns an error.
|
|
17001
|
-
*
|
|
17002
17041
|
* @remarks
|
|
17003
17042
|
* [Api set: Mailbox 1.8]
|
|
17004
17043
|
*
|
|
@@ -17006,6 +17045,15 @@ declare namespace Office {
|
|
|
17006
17045
|
*
|
|
17007
17046
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
17008
17047
|
*
|
|
17048
|
+
* **Important**:
|
|
17049
|
+
*
|
|
17050
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17051
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17052
|
+
*
|
|
17053
|
+
* - If your add-in calls `getItemIdAsync` (for example, to get an item ID to use with EWS or the REST API),
|
|
17054
|
+
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
17055
|
+
* Until the item is synced, the item ID isn't recognized and using it returns an error.
|
|
17056
|
+
*
|
|
17009
17057
|
* **Errors**:
|
|
17010
17058
|
*
|
|
17011
17059
|
* - `ItemNotSaved`: The ID can't be retrieved until the item is saved.
|
|
@@ -17013,18 +17061,15 @@ declare namespace Office {
|
|
|
17013
17061
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17014
17062
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17015
17063
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17016
|
-
* of type `Office.AsyncResult`.
|
|
17064
|
+
* of type `Office.AsyncResult`. The EWS item ID of the item is returned in the `asyncResult.value` property.
|
|
17017
17065
|
*/
|
|
17018
17066
|
getItemIdAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17019
17067
|
/**
|
|
17020
|
-
* Asynchronously gets the
|
|
17068
|
+
* Asynchronously gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
17069
|
+
* of a saved item.
|
|
17021
17070
|
*
|
|
17022
17071
|
* When invoked, this method returns the item ID via the callback function.
|
|
17023
17072
|
*
|
|
17024
|
-
* **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),
|
|
17025
|
-
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
17026
|
-
* Until the item is synced, the `itemId` is not recognized and using it returns an error.
|
|
17027
|
-
*
|
|
17028
17073
|
* @remarks
|
|
17029
17074
|
* [Api set: Mailbox 1.8]
|
|
17030
17075
|
*
|
|
@@ -17032,12 +17077,21 @@ declare namespace Office {
|
|
|
17032
17077
|
*
|
|
17033
17078
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
17034
17079
|
*
|
|
17080
|
+
* **Important**:
|
|
17081
|
+
*
|
|
17082
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17083
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17084
|
+
*
|
|
17085
|
+
* - If your add-in calls `getItemIdAsync` (for example, to get an item ID to use with EWS or the REST API),
|
|
17086
|
+
* be aware that when Outlook is in cached mode, it may take some time before the item is synced to the server.
|
|
17087
|
+
* Until the item is synced, the item ID isn't recognized and using it returns an error.
|
|
17088
|
+
*
|
|
17035
17089
|
* **Errors**:
|
|
17036
17090
|
*
|
|
17037
17091
|
* - `ItemNotSaved`: The ID can't be retrieved until the item is saved.
|
|
17038
17092
|
*
|
|
17039
17093
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17040
|
-
* of type `Office.AsyncResult`.
|
|
17094
|
+
* of type `Office.AsyncResult`. The EWS item ID of the item is returned in the `asyncResult.value` property.
|
|
17041
17095
|
*/
|
|
17042
17096
|
getItemIdAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17043
17097
|
/**
|
|
@@ -17368,7 +17422,12 @@ declare namespace Office {
|
|
|
17368
17422
|
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
17369
17423
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
17370
17424
|
*
|
|
17371
|
-
* -
|
|
17425
|
+
* - The identifier returned is the same as the
|
|
17426
|
+
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}.
|
|
17427
|
+
* The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17428
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17429
|
+
*
|
|
17430
|
+
* - If your add-in calls `saveAsync` to get an item ID to use with EWS or the REST API, be aware that
|
|
17372
17431
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
17373
17432
|
* Until the item is synced, using the item ID will return an error.
|
|
17374
17433
|
*
|
|
@@ -17385,7 +17444,7 @@ declare namespace Office {
|
|
|
17385
17444
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17386
17445
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17387
17446
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
17388
|
-
* which is an `Office.AsyncResult` object. The message ID is returned in the `asyncResult.value` property.
|
|
17447
|
+
* which is an `Office.AsyncResult` object. The EWS message ID is returned in the `asyncResult.value` property.
|
|
17389
17448
|
*/
|
|
17390
17449
|
saveAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17391
17450
|
/**
|
|
@@ -17406,7 +17465,12 @@ declare namespace Office {
|
|
|
17406
17465
|
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
17407
17466
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
17408
17467
|
*
|
|
17409
|
-
* -
|
|
17468
|
+
* - The identifier returned is the same as the
|
|
17469
|
+
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}.
|
|
17470
|
+
* The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17471
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17472
|
+
*
|
|
17473
|
+
* - If your add-in calls `saveAsync` to get an item ID to use with EWS or the REST API, be aware that
|
|
17410
17474
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
17411
17475
|
* Until the item is synced, using the item ID will return an error.
|
|
17412
17476
|
*
|
|
@@ -17421,7 +17485,7 @@ declare namespace Office {
|
|
|
17421
17485
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
17422
17486
|
*
|
|
17423
17487
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
17424
|
-
* which is an `Office.AsyncResult` object. The message ID is returned in the `asyncResult.value` property.
|
|
17488
|
+
* which is an `Office.AsyncResult` object. The EWS message ID is returned in the `asyncResult.value` property.
|
|
17425
17489
|
*/
|
|
17426
17490
|
saveAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17427
17491
|
/**
|
|
@@ -17698,24 +17762,23 @@ declare namespace Office {
|
|
|
17698
17762
|
*/
|
|
17699
17763
|
itemClass: string;
|
|
17700
17764
|
/**
|
|
17701
|
-
* Gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services item identifier}
|
|
17702
|
-
*
|
|
17703
|
-
*
|
|
17704
|
-
* The `itemId` property is not available in compose mode.
|
|
17705
|
-
* 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
|
|
17706
|
-
* in the `asyncResult.value` parameter in the callback function.
|
|
17707
|
-
*
|
|
17708
|
-
* **Note**: The identifier returned by the `itemId` property is the same as the
|
|
17709
|
-
* {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services item identifier}.
|
|
17710
|
-
* The `itemId` property is not identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17711
|
-
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17712
|
-
* 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}.
|
|
17765
|
+
* Gets the {@link https://learn.microsoft.com/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange | Exchange Web Services (EWS) item identifier}
|
|
17766
|
+
* of the current item.
|
|
17713
17767
|
*
|
|
17714
17768
|
* @remarks
|
|
17715
17769
|
*
|
|
17716
17770
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17717
17771
|
*
|
|
17718
17772
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
17773
|
+
*
|
|
17774
|
+
* **Important**:
|
|
17775
|
+
*
|
|
17776
|
+
* - The `itemId` property isn't available in compose mode.
|
|
17777
|
+
* 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
|
|
17778
|
+
* 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.
|
|
17779
|
+
*
|
|
17780
|
+
* - The item ID returned isn't identical to the Outlook Entry ID or the ID used by the Outlook REST API.
|
|
17781
|
+
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
17719
17782
|
*/
|
|
17720
17783
|
itemId: string;
|
|
17721
17784
|
/**
|
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.435",
|
|
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": "49c0807d889b1ac32d673c0a30376434f0a7fca3dca0b1c697883257f289d0bf",
|
|
49
49
|
"typeScriptVersion": "4.8"
|
|
50
50
|
}
|