@types/office-js 1.0.543 → 1.0.545

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 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, 03 Oct 2025 16:37:01 GMT
11
+ * Last updated: Tue, 07 Oct 2025 21:32:25 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -10457,6 +10457,10 @@ declare namespace Office {
10457
10457
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
10458
10458
  *
10459
10459
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
10460
+ *
10461
+ * **Important**: To manage the locations of an appointment in Outlook clients that don't support Mailbox requirement set 1.8, use the `location` property instead.
10462
+ * For guidance on selecting the right location API for your scenario, see
10463
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/get-or-set-the-location-of-an-appointment | Get or set the location when composing an appointmnt in Outlook}.
10460
10464
  */
10461
10465
  enhancedLocation: EnhancedLocation;
10462
10466
  /**
@@ -10477,9 +10481,15 @@ declare namespace Office {
10477
10481
  *
10478
10482
  * @remarks
10479
10483
  *
10484
+ * [Api set: Mailbox 1.1]
10485
+ *
10480
10486
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
10481
10487
  *
10482
10488
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
10489
+ *
10490
+ * **Important**: The `enhancedLocation` property was introduced in Mailbox requirement set 1.8. Use the `enhancedLocation` property to better identify and manage
10491
+ * appointment locations, especially if you need to determine the location type. For guidance on selecting the right location API for your scenario, see
10492
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/get-or-set-the-location-of-an-appointment | Get or set the location when composing an appointmnt in Outlook}.
10483
10493
  */
10484
10494
  location: Location;
10485
10495
  /**
@@ -11982,6 +11992,10 @@ declare namespace Office {
11982
11992
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
11983
11993
  *
11984
11994
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
11995
+ *
11996
+ * **Important**: To manage the locations of an appointment in Outlook clients that don't support Mailbox requirement set 1.8, use the `location` property instead.
11997
+ * For guidance on selecting the right location API for your scenario, see
11998
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/get-or-set-the-location-of-an-appointment | Get or set the location when composing an appointmnt in Outlook}.
11985
11999
  */
11986
12000
  enhancedLocation: EnhancedLocation;
11987
12001
  /**
@@ -12037,9 +12051,15 @@ declare namespace Office {
12037
12051
  *
12038
12052
  * @remarks
12039
12053
  *
12054
+ * [Api set: Mailbox 1.1]
12055
+ *
12040
12056
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
12041
12057
  *
12042
12058
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
12059
+ *
12060
+ * **Important**: The `enhancedLocation` property was introduced in Mailbox requirement set 1.8. Use the `enhancedLocation` property to better identify and manage
12061
+ * appointment locations, especially if you need to determine the location type. For guidance on selecting the right location API for your scenario, see
12062
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/get-or-set-the-location-of-an-appointment | Get or set the location when composing an appointmnt in Outlook}.
12043
12063
  */
12044
12064
  location: string;
12045
12065
  /**
@@ -12913,6 +12933,22 @@ declare namespace Office {
12913
12933
  * `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
12914
12934
  */
12915
12935
  attachmentType: MailboxEnums.AttachmentType | string;
12936
+ /**
12937
+ * Gets the content identifier of an inline attachment.
12938
+ *
12939
+ * **Important**:
12940
+ *
12941
+ * - The `contentId` property is only supported in Outlook on the web and the new Outlook on Windows.
12942
+ *
12943
+ * - Starting November 15, 2025, changes to how inline images are represented in the HTML body of Outlook emails in
12944
+ * Outlook on the web and the new Outlook on Windows will begin rolling out to production users.
12945
+ * Previously, the attachment ID of the image appeared in the `src` attribute of the applicable `<img>` element.
12946
+ * After the change, the image will be represented by a content ID (`cid`) in the `src` attribute instead.
12947
+ * As a result, you'll need to update your add-in's parsing logic if you parse the attachment ID from the HTML editor or
12948
+ * get the Base64 value of the image from the URL in the `src` attribute. For more information, see
12949
+ * {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
12950
+ */
12951
+ contentId: string;
12916
12952
  /**
12917
12953
  * Gets the index of the attachment.
12918
12954
  */
@@ -14612,6 +14648,10 @@ declare namespace Office {
14612
14648
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
14613
14649
  *
14614
14650
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14651
+ *
14652
+ * **Important**: To manage the locations of an appointment in Outlook clients that don't support Mailbox requirement set 1.8, use the Office.Location API instead.
14653
+ * For guidance on selecting the right location API for your scenario, see
14654
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/get-or-set-the-location-of-an-appointment | Get or set the location when composing an appointmnt in Outlook}.
14615
14655
  */
14616
14656
  export interface EnhancedLocation {
14617
14657
  /**
@@ -14657,9 +14697,6 @@ declare namespace Office {
14657
14697
  /**
14658
14698
  * Gets the set of locations associated with the appointment.
14659
14699
  *
14660
- * **Note**: {@link https://support.microsoft.com/office/88ff6c60-0a1d-4b54-8c9d-9e1a71bc3023 | Personal contact groups}
14661
- * added as appointment locations aren't returned by this method.
14662
- *
14663
14700
  * @remarks
14664
14701
  * [Api set: Mailbox 1.8]
14665
14702
  *
@@ -14667,18 +14704,23 @@ declare namespace Office {
14667
14704
  *
14668
14705
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14669
14706
  *
14707
+ * **Important**:
14708
+ *
14709
+ * - The `getAsync` method doesn't return {@link https://support.microsoft.com/office/88ff6c60-0a1d-4b54-8c9d-9e1a71bc3023 | personal contact groups} that
14710
+ * were added to the **Location** field of an appointment.
14711
+ *
14712
+ * - If a location was added using `Office.context.mailbox.item.location.setAsync`, its location type is `Office.MailboxEnums.LocationType.Custom`.
14713
+ *
14670
14714
  * @param options An object literal that contains one or more of the following properties:-
14671
14715
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
14672
14716
  * @param callback Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
14673
- * `asyncResult`, which is an `Office.AsyncResult` object.
14717
+ * `asyncResult`, which is an `Office.AsyncResult` object. An array of `Office.LocationDetails` objects representing the locations of the
14718
+ * appointment is returned in the `asyncResult.value` property.
14674
14719
  */
14675
14720
  getAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<LocationDetails[]>) => void): void;
14676
14721
  /**
14677
14722
  * Gets the set of locations associated with the appointment.
14678
14723
  *
14679
- * **Note**: {@link https://support.microsoft.com/office/88ff6c60-0a1d-4b54-8c9d-9e1a71bc3023 | Personal contact groups}
14680
- * added as appointment locations aren't returned by this method.
14681
- *
14682
14724
  * @remarks
14683
14725
  * [Api set: Mailbox 1.8]
14684
14726
  *
@@ -14686,8 +14728,16 @@ declare namespace Office {
14686
14728
  *
14687
14729
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14688
14730
  *
14731
+ * **Important**:
14732
+ *
14733
+ * - The `getAsync` method doesn't return {@link https://support.microsoft.com/office/88ff6c60-0a1d-4b54-8c9d-9e1a71bc3023 | personal contact groups} that
14734
+ * were added to the **Location** field of an appointment.
14735
+ *
14736
+ * - If a location was added using `Office.context.mailbox.item.location.setAsync`, its location type is `Office.MailboxEnums.LocationType.Custom`.
14737
+ *
14689
14738
  * @param callback Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
14690
- * `asyncResult`, which is an `Office.AsyncResult` object.
14739
+ * `asyncResult`, which is an `Office.AsyncResult` object. An array of `Office.LocationDetails` objects representing the locations of the
14740
+ * appointment is returned in the `asyncResult.value` property.
14691
14741
  */
14692
14742
  getAsync(callback?: (asyncResult: Office.AsyncResult<LocationDetails[]>) => void): void;
14693
14743
  /**
@@ -17125,6 +17175,10 @@ declare namespace Office {
17125
17175
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17126
17176
  *
17127
17177
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17178
+ *
17179
+ * **Important**: The Office.EnhancedLocation API was introduced in Mailbox requirement set 1.8. Use the EnhancedLocation API to better identify and manage
17180
+ * appointment locations, especially if you need to determine the location type. For guidance on selecting the right location API for your scenario, see
17181
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/get-or-set-the-location-of-an-appointment | Get or set the location when composing an appointmnt in Outlook}.
17128
17182
  */
17129
17183
  interface Location {
17130
17184
  /**
@@ -17176,6 +17230,9 @@ declare namespace Office {
17176
17230
  *
17177
17231
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17178
17232
  *
17233
+ * **Important**: To ensure that multiple locations resolve correctly in Outlook, separate them with a semicolon and a space. For example,
17234
+ * "Conference Room 1; Conference Room 2".
17235
+ *
17179
17236
  * **Errors**:
17180
17237
  *
17181
17238
  * - DataExceedsMaximumSize: The location parameter is longer than 255 characters.
@@ -17200,6 +17257,9 @@ declare namespace Office {
17200
17257
  *
17201
17258
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17202
17259
  *
17260
+ * **Important**: To ensure that multiple locations resolve correctly in Outlook, separate them with a semicolon and a space. For example,
17261
+ * "Conference Room 1; Conference Room 2".
17262
+ *
17203
17263
  * **Errors**:
17204
17264
  *
17205
17265
  * - DataExceedsMaximumSize: The location parameter is longer than 255 characters.
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.543",
3
+ "version": "1.0.545",
4
4
  "description": "TypeScript definitions for office-js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
6
6
  "license": "MIT",
@@ -46,6 +46,6 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "157bc3430ec06b9bd4e88382dea27d5c25788be7ad472f77023123547da359fa",
49
+ "typesPublisherContentHash": "00bd4dd838947ee41e003e4f86318e30c4470db8d92a00e41aa9d7d8e5a9e23c",
50
50
  "typeScriptVersion": "5.2"
51
51
  }