@types/office-js 1.0.373 → 1.0.375

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.
Files changed (3) hide show
  1. office-js/README.md +1 -1
  2. office-js/index.d.ts +122 -188
  3. 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: Fri, 09 Feb 2024 17:35:52 GMT
11
+ * Last updated: Thu, 15 Feb 2024 19:35:54 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -943,11 +943,11 @@ declare namespace Office {
943
943
  */
944
944
  officeTheme: OfficeTheme;
945
945
  /**
946
- * Gets a partition key for local storage. Add-ins should use this key as the location to securely store data.
946
+ * Gets a partition key for local storage. Add-ins should use this partition key as part of the storage key to securely store data. The partition key is `undefined` in environments without partitioning, such as the browser controls for Windows applications.
947
947
  *
948
948
  * @remarks
949
949
  *
950
- * The hashed value of the UserPrincipalName (UPN) for the add-in's current partition.
950
+ * See the article {@link https://learn.microsoft.com/office/dev/add-ins/develop/persisting-add-in-state-and-settings | Persist add-in state and settings} for more information.
951
951
  */
952
952
  partitionKey: string;
953
953
  /**
@@ -2308,18 +2308,10 @@ declare namespace Office {
2308
2308
  *
2309
2309
  * Only task pane add-ins for Outlook support Mailbox API set event types.
2310
2310
  *
2311
- * @remarks
2312
- *
2313
- * **`BindingDataChanged` and `BindingSelectionChanged` applications**: Excel, Word.
2314
- *
2315
2311
  */
2316
2312
  enum EventType {
2317
2313
  /**
2318
- * A Document.ActiveViewChanged event was raised in PowerPoint.
2319
- *
2320
- * @remarks
2321
- *
2322
- * **Applications**: PowerPoint
2314
+ * A `Document.ActiveViewChanged` event was raised in PowerPoint.
2323
2315
  */
2324
2316
  ActiveViewChanged,
2325
2317
  /**
@@ -2344,22 +2336,17 @@ declare namespace Office {
2344
2336
  */
2345
2337
  AttachmentsChanged,
2346
2338
  /**
2347
- * Occurs when data within the binding is changed.
2348
- * To add an event handler for the BindingDataChanged event of a binding, use the addHandlerAsync method of the Binding object.
2339
+ * Occurs when data within the binding is changed in Excel or Word.
2340
+ *
2341
+ * To add an event handler for the `BindingDataChanged` event of a binding, use the `addHandlerAsync` method of the Binding object.
2349
2342
  * The event handler receives an argument of type {@link Office.BindingDataChangedEventArgs}.
2350
- *
2351
- * @remarks
2352
- *
2353
- * **Applications**: Excel, Word
2354
2343
  */
2355
2344
  BindingDataChanged,
2356
2345
  /**
2357
- * Occurs when the selection is changed within the binding. To add an event handler for the BindingSelectionChanged event of a binding, use
2358
- * the addHandlerAsync method of the Binding object. The event handler receives an argument of type {@link Office.BindingSelectionChangedEventArgs}.
2359
- *
2360
- * @remarks
2361
- *
2362
- * **Applications**: Excel, Word
2346
+ * Occurs when the selection is changed within the binding in Excel or Word.
2347
+ *
2348
+ * To add an event handler for the `BindingSelectionChanged` event of a binding, use
2349
+ * the `addHandlerAsync` method of the Binding object. The event handler receives an argument of type {@link Office.BindingSelectionChangedEventArgs}.
2363
2350
  */
2364
2351
  BindingSelectionChanged,
2365
2352
  /**
@@ -2375,11 +2362,7 @@ declare namespace Office {
2375
2362
  */
2376
2363
  DialogParentMessageReceived,
2377
2364
  /**
2378
- * Triggers when a document-level selection happens.
2379
- *
2380
- * @remarks
2381
- *
2382
- * **Applications**: Excel, Word
2365
+ * Triggers when a document-level selection happens in Excel or Word.
2383
2366
  */
2384
2367
  DocumentSelectionChanged,
2385
2368
  /**
@@ -2416,15 +2399,15 @@ declare namespace Office {
2416
2399
  */
2417
2400
  ItemChanged,
2418
2401
  /**
2419
- * Triggers when a customXmlPart node is deleted.
2402
+ * Triggers when a `customXmlPart` node is deleted.
2420
2403
  */
2421
2404
  NodeDeleted,
2422
2405
  /**
2423
- * Triggers when a customXmlPart node is inserted.
2406
+ * Triggers when a `customXmlPart` node is inserted.
2424
2407
  */
2425
2408
  NodeInserted,
2426
2409
  /**
2427
- * Triggers when a customXmlPart node is replaced.
2410
+ * Triggers when a `customXmlPart` node is replaced.
2428
2411
  */
2429
2412
  NodeReplaced,
2430
2413
  /**
@@ -2474,11 +2457,7 @@ declare namespace Office {
2474
2457
  */
2475
2458
  SensitivityLabelChanged,
2476
2459
  /**
2477
- * A Settings.settingsChanged event was raised.
2478
- *
2479
- * @remarks
2480
- *
2481
- * **Applications**: Excel, PowerPoint, Word
2460
+ * A `Settings.settingsChanged` event was raised in Excel, PowerPoint, or Word.
2482
2461
  */
2483
2462
  SettingsChanged,
2484
2463
  /**
@@ -8740,9 +8719,16 @@ declare namespace Office {
8740
8719
  *
8741
8720
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
8742
8721
  *
8743
- * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
8744
- * entities in mail items to perform tasks on them. To help minimize potential disruptions, the following will still be supported after entity-based
8745
- * contextual add-ins are retired.
8722
+ * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. The work to retire this feature will start in May and continue
8723
+ * until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
8724
+ * The following APIs will also be retired.
8725
+ *
8726
+ * - `Office.context.mailbox.item.getEntities`
8727
+ * - `Office.context.mailbox.item.getEntitiesByType`
8728
+ * - `Office.context.mailbox.item.getFilteredEntitiesByName`
8729
+ * - `Office.context.mailbox.item.getSelectedEntities`
8730
+ *
8731
+ * To help minimize potential disruptions, the following will still be supported after entity-based contextual add-ins are retired.
8746
8732
  *
8747
8733
  * - An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed. Once support for
8748
8734
  * entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation to activate the
@@ -11620,20 +11606,14 @@ declare namespace Office {
11620
11606
  *
11621
11607
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
11622
11608
  *
11623
- * **Important**:
11624
- *
11625
- * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
11626
- * entities in mail items to perform tasks on them.
11627
- *
11628
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
11629
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
11630
- * to activate the **Join Meeting** button.
11609
+ * **Important**:
11631
11610
  *
11611
+ * - Entity-based contextual Outlook add-ins, including the `getEntities` method, will be retired in Q2 of 2024. The work to retire this method will
11612
+ * start in May and continue until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
11632
11613
  * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
11633
11614
  * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11634
11615
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
11635
- *
11636
- * For more information, see
11616
+ * To learn more about the retirement of entity-based contextual Outlook add-ins, see
11637
11617
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
11638
11618
  *
11639
11619
  * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
@@ -11657,18 +11637,12 @@ declare namespace Office {
11657
11637
  *
11658
11638
  * **Important**:
11659
11639
  *
11660
- * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
11661
- * entities in mail items to perform tasks on them.
11662
- *
11663
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
11664
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
11665
- * to activate the **Join Meeting** button.
11666
- *
11640
+ * - Entity-based contextual Outlook add-ins, including the `getEntitiesByType` method, will be retired in Q2 of 2024. The work to retire this method will
11641
+ * start in May and continue until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
11667
11642
  * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
11668
11643
  * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11669
11644
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
11670
- *
11671
- * For more information, see
11645
+ * To learn more about the retirement of entity-based contextual Outlook add-ins, see
11672
11646
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
11673
11647
  *
11674
11648
  * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
@@ -11740,18 +11714,12 @@ declare namespace Office {
11740
11714
  *
11741
11715
  * **Important**:
11742
11716
  *
11743
- * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
11744
- * entities in mail items to perform tasks on them.
11745
- *
11746
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
11747
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
11748
- * to activate the **Join Meeting** button.
11749
- *
11717
+ * - Entity-based contextual Outlook add-ins, including the `getFilteredEntitiesByName` method, will be retired in Q2 of 2024. The work to retire this method will
11718
+ * start in May and continue until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
11750
11719
  * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
11751
11720
  * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11752
11721
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
11753
- *
11754
- * For more information, see
11722
+ * To learn more about the retirement of entity-based contextual Outlook add-ins, see
11755
11723
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
11756
11724
  *
11757
11725
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
@@ -11816,17 +11784,10 @@ declare namespace Office {
11816
11784
  * **Important**:
11817
11785
  *
11818
11786
  * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
11819
- * entities in mail items to perform tasks on them.
11820
- *
11821
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
11822
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
11823
- * to activate the **Join Meeting** button.
11824
- *
11825
- * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
11826
- * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11787
+ * entities in mail items to perform tasks on them. Regular expression rules will continue to be supported after entity-based contextual add-ins are retired.
11788
+ * We recommend updating your contextual add-in to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11827
11789
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
11828
- *
11829
- * For more information, see
11790
+ * To learn more about the retirement of entity-based contextual add-ins, see
11830
11791
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
11831
11792
  *
11832
11793
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
@@ -11857,17 +11818,10 @@ declare namespace Office {
11857
11818
  * **Important**:
11858
11819
  *
11859
11820
  * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
11860
- * entities in mail items to perform tasks on them.
11861
- *
11862
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
11863
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
11864
- * to activate the **Join Meeting** button.
11865
- *
11866
- * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
11867
- * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11821
+ * entities in mail items to perform tasks on them. Regular expression rules will continue to be supported after entity-based contextual add-ins are retired.
11822
+ * We recommend updating your contextual add-in to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11868
11823
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
11869
- *
11870
- * For more information, see
11824
+ * To learn more about the retirement of entity-based contextual add-ins, see
11871
11825
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
11872
11826
  *
11873
11827
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
@@ -11895,24 +11849,19 @@ declare namespace Office {
11895
11849
  *
11896
11850
  * **Important**:
11897
11851
  *
11898
- * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
11899
- * entities in mail items to perform tasks on them.
11900
- *
11901
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
11902
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
11903
- * to activate the **Join Meeting** button.
11904
- *
11852
+ * - Entity-based contextual Outlook add-ins, including the `getSelectedEntities` method, will be retired in Q2 of 2024. The work to retire this method will
11853
+ * start in May and continue until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
11905
11854
  * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
11906
11855
  * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11907
11856
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
11908
- *
11909
- * For more information, see
11857
+ * To learn more about the retirement of entity-based contextual Outlook add-ins, see
11910
11858
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
11911
11859
  *
11912
11860
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
11913
11861
  * which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365 (preview)}.
11914
11862
  *
11915
- * - This method isn't supported in Outlook on iOS or Android.
11863
+ * - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
11864
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
11916
11865
  *
11917
11866
  * @param name - The name of the `ItemHasRegularExpressionMatch` rule element that defines the filter to match.
11918
11867
  */
@@ -11937,23 +11886,17 @@ declare namespace Office {
11937
11886
  * **Important**:
11938
11887
  *
11939
11888
  * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
11940
- * entities in mail items to perform tasks on them.
11941
- *
11942
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
11943
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
11944
- * to activate the **Join Meeting** button.
11945
- *
11946
- * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
11947
- * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11889
+ * entities in mail items to perform tasks on them. Regular expression rules will continue to be supported after entity-based contextual add-ins are retired.
11890
+ * We recommend updating your contextual add-in to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
11948
11891
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
11949
- *
11950
- * For more information, see
11892
+ * To learn more about the retirement of entity-based contextual add-ins, see
11951
11893
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
11952
11894
  *
11953
11895
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
11954
11896
  * which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365 (preview)}.
11955
11897
  *
11956
- * - This method isn't supported in Outlook on iOS or Android.
11898
+ * - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
11899
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
11957
11900
  *
11958
11901
  * - If you specify an `ItemHasRegularExpressionMatch` rule on the body property of an item, the regular expression should further filter the body
11959
11902
  * and shouldn't attempt to return the entire body of the item. Using a regular expression such as .* to obtain the entire body of an item doesn't always return the
@@ -12990,9 +12933,16 @@ declare namespace Office {
12990
12933
  *
12991
12934
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Read
12992
12935
  *
12993
- * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
12994
- * entities in mail items to perform tasks on them. To help minimize potential disruptions, the following will still be supported after entity-based
12995
- * contextual add-ins are retired.
12936
+ * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. The work to retire this feature will start in May and continue
12937
+ * until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
12938
+ * The following APIs will also be retired.
12939
+ *
12940
+ * - `Office.context.mailbox.item.getEntities`
12941
+ * - `Office.context.mailbox.item.getEntitiesByType`
12942
+ * - `Office.context.mailbox.item.getFilteredEntitiesByName`
12943
+ * - `Office.context.mailbox.item.getSelectedEntities`
12944
+ *
12945
+ * To help minimize potential disruptions, the following will still be supported after entity-based contextual add-ins are retired.
12996
12946
  *
12997
12947
  * - An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed. Once support for
12998
12948
  * entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation to activate the
@@ -13583,9 +13533,16 @@ declare namespace Office {
13583
13533
  *
13584
13534
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Read
13585
13535
  *
13586
- * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
13587
- * entities in mail items to perform tasks on them. To help minimize potential disruptions, the following will still be supported after entity-based
13588
- * contextual add-ins are retired.
13536
+ * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. The work to retire this feature will start in May and continue
13537
+ * until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
13538
+ * The following APIs will also be retired.
13539
+ *
13540
+ * - `Office.context.mailbox.item.getEntities`
13541
+ * - `Office.context.mailbox.item.getEntitiesByType`
13542
+ * - `Office.context.mailbox.item.getFilteredEntitiesByName`
13543
+ * - `Office.context.mailbox.item.getSelectedEntities`
13544
+ *
13545
+ * To help minimize potential disruptions, the following will still be supported after entity-based contextual add-ins are retired.
13589
13546
  *
13590
13547
  * - An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed. Once support for
13591
13548
  * entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation to activate the
@@ -15279,9 +15236,16 @@ declare namespace Office {
15279
15236
  *
15280
15237
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Read
15281
15238
  *
15282
- * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
15283
- * entities in mail items to perform tasks on them. To help minimize potential disruptions, the following will still be supported after entity-based
15284
- * contextual add-ins are retired.
15239
+ * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. The work to retire this feature will start in May and continue
15240
+ * until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
15241
+ * The following APIs will also be retired.
15242
+ *
15243
+ * - `Office.context.mailbox.item.getEntities`
15244
+ * - `Office.context.mailbox.item.getEntitiesByType`
15245
+ * - `Office.context.mailbox.item.getFilteredEntitiesByName`
15246
+ * - `Office.context.mailbox.item.getSelectedEntities`
15247
+ *
15248
+ * To help minimize potential disruptions, the following will still be supported after entity-based contextual add-ins are retired.
15285
15249
  *
15286
15250
  * - An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed. Once support for
15287
15251
  * entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation to activate the
@@ -17251,18 +17215,12 @@ declare namespace Office {
17251
17215
  *
17252
17216
  * **Important**:
17253
17217
  *
17254
- * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
17255
- * entities in mail items to perform tasks on them.
17256
- *
17257
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
17258
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
17259
- * to activate the **Join Meeting** button.
17260
- *
17218
+ * - Entity-based contextual Outlook add-ins, including the `getEntities` method, will be retired in Q2 of 2024. The work to retire this method will
17219
+ * start in May and continue until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
17261
17220
  * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
17262
17221
  * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17263
17222
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
17264
- *
17265
- * For more information, see
17223
+ * To learn more about the retirement of entity-based contextual Outlook add-ins, see
17266
17224
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
17267
17225
  *
17268
17226
  * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
@@ -17286,18 +17244,12 @@ declare namespace Office {
17286
17244
  *
17287
17245
  * **Important**:
17288
17246
  *
17289
- * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
17290
- * entities in mail items to perform tasks on them.
17291
- *
17292
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
17293
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
17294
- * to activate the **Join Meeting** button.
17295
- *
17247
+ * - Entity-based contextual Outlook add-ins, including the `getEntitiesByType` method, will be retired in Q2 of 2024. The work to retire this method will
17248
+ * start in May and continue until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
17296
17249
  * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
17297
17250
  * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17298
17251
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
17299
- *
17300
- * For more information, see
17252
+ * To learn more about the retirement of entity-based contextual Outlook add-ins, see
17301
17253
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
17302
17254
  *
17303
17255
  * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
@@ -17370,18 +17322,12 @@ declare namespace Office {
17370
17322
  *
17371
17323
  * **Important**:
17372
17324
  *
17373
- * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
17374
- * entities in mail items to perform tasks on them.
17375
- *
17376
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
17377
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
17378
- * to activate the **Join Meeting** button.
17379
- *
17325
+ * - Entity-based contextual Outlook add-ins, including the `getFilteredEntitiesByName` method, will be retired in Q2 of 2024. The work to retire this method will
17326
+ * start in May and continue until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
17380
17327
  * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
17381
17328
  * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17382
17329
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
17383
- *
17384
- * For more information, see
17330
+ * To learn more about the retirement of entity-based contextual Outlook add-ins, see
17385
17331
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
17386
17332
  *
17387
17333
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
@@ -17446,17 +17392,10 @@ declare namespace Office {
17446
17392
  * **Important**:
17447
17393
  *
17448
17394
  * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
17449
- * entities in mail items to perform tasks on them.
17450
- *
17451
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
17452
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
17453
- * to activate the **Join Meeting** button.
17454
- *
17455
- * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
17456
- * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17395
+ * entities in mail items to perform tasks on them. Regular expression rules will continue to be supported after entity-based contextual add-ins are retired.
17396
+ * We recommend updating your contextual add-in to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17457
17397
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
17458
- *
17459
- * For more information, see
17398
+ * To learn more about the retirement of entity-based contextual add-ins, see
17460
17399
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
17461
17400
  *
17462
17401
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
@@ -17487,17 +17426,10 @@ declare namespace Office {
17487
17426
  * **Important**:
17488
17427
  *
17489
17428
  * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
17490
- * entities in mail items to perform tasks on them.
17491
- *
17492
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
17493
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
17494
- * to activate the **Join Meeting** button.
17495
- *
17496
- * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
17497
- * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17429
+ * entities in mail items to perform tasks on them. Regular expression rules will continue to be supported after entity-based contextual add-ins are retired.
17430
+ * We recommend updating your contextual add-in to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17498
17431
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
17499
- *
17500
- * For more information, see
17432
+ * To learn more about the retirement of entity-based contextual add-ins, see
17501
17433
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
17502
17434
  *
17503
17435
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
@@ -17527,21 +17459,22 @@ declare namespace Office {
17527
17459
  *
17528
17460
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
17529
17461
  *
17530
- * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
17531
- * entities in mail items to perform tasks on them. To help minimize potential disruptions, the following will still be supported after entity-based
17532
- * contextual add-ins are retired.
17533
- *
17534
- * - An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed. Once support for
17535
- * entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation to activate the
17536
- * **Join Meeting** button.
17462
+ * **Important**:
17537
17463
  *
17538
- * - Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
17464
+ * - Entity-based contextual Outlook add-ins, including the `getSelectedEntities` method, will be retired in Q2 of 2024. The work to retire this method will
17465
+ * start in May and continue until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
17466
+ * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
17539
17467
  * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17540
17468
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
17541
- *
17542
- * For more information, see
17469
+ * To learn more about the retirement of entity-based contextual Outlook add-ins, see
17543
17470
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
17544
17471
  *
17472
+ * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
17473
+ * which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365 (preview)}.
17474
+ *
17475
+ * - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
17476
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
17477
+ *
17545
17478
  * @param name - The name of the `ItemHasRegularExpressionMatch` rule element that defines the filter to match.
17546
17479
  */
17547
17480
  getSelectedEntities(): Entities;
@@ -17565,23 +17498,17 @@ declare namespace Office {
17565
17498
  * **Important**:
17566
17499
  *
17567
17500
  * - Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
17568
- * entities in mail items to perform tasks on them.
17569
- *
17570
- * An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed.
17571
- * Once support for entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation
17572
- * to activate the **Join Meeting** button.
17573
- *
17574
- * Regular expression rules will continue to be supported after entity-based contextual add-ins are retired. We recommend updating your contextual add-in
17575
- * to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17501
+ * entities in mail items to perform tasks on them. Regular expression rules will continue to be supported after entity-based contextual add-ins are retired.
17502
+ * We recommend updating your contextual add-in to use regular expression rules as an alternative solution. For guidance on how to implement these rules, see
17576
17503
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-regular-expressions-to-show-an-outlook-add-in | Use regular expression activation rules to show an Outlook add-in}.
17577
- *
17578
- * For more information, see
17504
+ * To learn more about the retirement of entity-based contextual add-ins, see
17579
17505
  * {@link https://devblogs.microsoft.com/microsoft365dev/retirement-of-entity-based-contextual-outlook-add-ins | Retirement of entity-based contextual Outlook add-ins}.
17580
17506
  *
17581
17507
  * - This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins},
17582
17508
  * which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365 (preview)}.
17583
17509
  *
17584
- * - This method isn't supported in Outlook on iOS or Android.
17510
+ * - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
17511
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
17585
17512
  *
17586
17513
  * - If you specify an `ItemHasRegularExpressionMatch` rule on the body property of an item, the regular expression should further filter the body
17587
17514
  * and shouldn't attempt to return the entire body of the item. Using a regular expression such as .* to obtain the entire body of an item doesn't always return the
@@ -18035,9 +17962,16 @@ declare namespace Office {
18035
17962
  *
18036
17963
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Read
18037
17964
  *
18038
- * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. Once retired, contextual add-ins will no longer be able to detect
18039
- * entities in mail items to perform tasks on them. To help minimize potential disruptions, the following will still be supported after entity-based
18040
- * contextual add-ins are retired.
17965
+ * **Important**: Entity-based contextual Outlook add-ins will be retired in Q2 of 2024. The work to retire this feature will start in May and continue
17966
+ * until the end of June. After June, contextual add-ins will no longer be able to detect entities in mail items to perform tasks on them.
17967
+ * The following APIs will also be retired.
17968
+ *
17969
+ * - `Office.context.mailbox.item.getEntities`
17970
+ * - `Office.context.mailbox.item.getEntitiesByType`
17971
+ * - `Office.context.mailbox.item.getFilteredEntitiesByName`
17972
+ * - `Office.context.mailbox.item.getSelectedEntities`
17973
+ *
17974
+ * To help minimize potential disruptions, the following will still be supported after entity-based contextual add-ins are retired.
18041
17975
  *
18042
17976
  * - An alternative implementation of the **Join Meeting** button, which is activated by online meeting add-ins, is being developed. Once support for
18043
17977
  * entity-based contextual add-ins ends, online meeting add-ins will automatically transition to the alternative implementation to activate the
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.373",
3
+ "version": "1.0.375",
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": "d6336df89fecd7193c0d8bd7e63877e88222824f386e10888a1006731afd510c",
48
+ "typesPublisherContentHash": "d4aa84c21e8298f1ad9ddc7f9a9f0443dc44458fbd2343d0dd262651e8227cbf",
49
49
  "typeScriptVersion": "4.6"
50
50
  }