@types/office-js-preview 1.0.646 → 1.0.648

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.
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: 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
@@ -10467,6 +10467,10 @@ declare namespace Office {
10467
10467
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
10468
10468
  *
10469
10469
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
10470
+ *
10471
+ * **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.
10472
+ * For guidance on selecting the right location API for your scenario, see
10473
+ * {@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}.
10470
10474
  */
10471
10475
  enhancedLocation: EnhancedLocation;
10472
10476
  /**
@@ -10500,9 +10504,15 @@ declare namespace Office {
10500
10504
  *
10501
10505
  * @remarks
10502
10506
  *
10507
+ * [Api set: Mailbox 1.1]
10508
+ *
10503
10509
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
10504
10510
  *
10505
10511
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
10512
+ *
10513
+ * **Important**: The `enhancedLocation` property was introduced in Mailbox requirement set 1.8. Use the `enhancedLocation` property to better identify and manage
10514
+ * appointment locations, especially if you need to determine the location type. For guidance on selecting the right location API for your scenario, see
10515
+ * {@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}.
10506
10516
  */
10507
10517
  location: Location;
10508
10518
  /**
@@ -12001,6 +12011,10 @@ declare namespace Office {
12001
12011
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
12002
12012
  *
12003
12013
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
12014
+ *
12015
+ * **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.
12016
+ * For guidance on selecting the right location API for your scenario, see
12017
+ * {@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}.
12004
12018
  */
12005
12019
  enhancedLocation: EnhancedLocation;
12006
12020
  /**
@@ -12069,9 +12083,15 @@ declare namespace Office {
12069
12083
  *
12070
12084
  * @remarks
12071
12085
  *
12086
+ * [Api set: Mailbox 1.1]
12087
+ *
12072
12088
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
12073
12089
  *
12074
12090
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
12091
+ *
12092
+ * **Important**: The `enhancedLocation` property was introduced in Mailbox requirement set 1.8. Use the `enhancedLocation` property to better identify and manage
12093
+ * appointment locations, especially if you need to determine the location type. For guidance on selecting the right location API for your scenario, see
12094
+ * {@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}.
12075
12095
  */
12076
12096
  location: string;
12077
12097
  /**
@@ -12958,6 +12978,24 @@ declare namespace Office {
12958
12978
  * `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
12959
12979
  */
12960
12980
  attachmentType: MailboxEnums.AttachmentType | string;
12981
+ /**
12982
+ * Gets the content identifier of an inline attachment.
12983
+ *
12984
+ * @remarks
12985
+ *
12986
+ * **Important**:
12987
+ *
12988
+ * - The `contentId` property is only supported in Outlook on the web and the new Outlook on Windows.
12989
+ *
12990
+ * - Starting November 15, 2025, changes to how inline images are represented in the HTML body of Outlook emails in
12991
+ * Outlook on the web and the new Outlook on Windows will begin rolling out to production users.
12992
+ * Previously, the attachment ID of the image appeared in the `src` attribute of the applicable `<img>` element.
12993
+ * After the change, the image will be represented by a content ID (`cid`) in the `src` attribute instead.
12994
+ * 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
12995
+ * get the Base64 value of the image from the URL in the `src` attribute. For more information, see
12996
+ * {@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}.
12997
+ */
12998
+ contentId: string;
12961
12999
  /**
12962
13000
  * Gets the index of the attachment.
12963
13001
  */
@@ -14832,6 +14870,10 @@ declare namespace Office {
14832
14870
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
14833
14871
  *
14834
14872
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14873
+ *
14874
+ * **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.
14875
+ * For guidance on selecting the right location API for your scenario, see
14876
+ * {@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}.
14835
14877
  */
14836
14878
  export interface EnhancedLocation {
14837
14879
  /**
@@ -14876,9 +14918,6 @@ declare namespace Office {
14876
14918
  addAsync(locationIdentifiers: LocationIdentifier[], callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
14877
14919
  /**
14878
14920
  * Gets the set of locations associated with the appointment.
14879
- *
14880
- * **Note**: {@link https://support.microsoft.com/office/88ff6c60-0a1d-4b54-8c9d-9e1a71bc3023 | Personal contact groups}
14881
- * added as appointment locations aren't returned by this method.
14882
14921
  *
14883
14922
  * @remarks
14884
14923
  * [Api set: Mailbox 1.8]
@@ -14887,18 +14926,23 @@ declare namespace Office {
14887
14926
  *
14888
14927
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14889
14928
  *
14929
+ * **Important**:
14930
+ *
14931
+ * - The `getAsync` method doesn't return {@link https://support.microsoft.com/office/88ff6c60-0a1d-4b54-8c9d-9e1a71bc3023 | personal contact groups} that
14932
+ * were added to the **Location** field of an appointment.
14933
+ *
14934
+ * - If a location was added using `Office.context.mailbox.item.location.setAsync`, its location type is `Office.MailboxEnums.LocationType.Custom`.
14935
+ *
14890
14936
  * @param options An object literal that contains one or more of the following properties:-
14891
14937
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
14892
14938
  * @param callback Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
14893
- * `asyncResult`, which is an `Office.AsyncResult` object.
14939
+ * `asyncResult`, which is an `Office.AsyncResult` object. An array of `Office.LocationDetails` objects representing the locations of the
14940
+ * appointment is returned in the `asyncResult.value` property.
14894
14941
  */
14895
14942
  getAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<LocationDetails[]>) => void): void;
14896
14943
  /**
14897
14944
  * Gets the set of locations associated with the appointment.
14898
14945
  *
14899
- * **Note**: {@link https://support.microsoft.com/office/88ff6c60-0a1d-4b54-8c9d-9e1a71bc3023 | Personal contact groups}
14900
- * added as appointment locations aren't returned by this method.
14901
- *
14902
14946
  * @remarks
14903
14947
  * [Api set: Mailbox 1.8]
14904
14948
  *
@@ -14906,8 +14950,16 @@ declare namespace Office {
14906
14950
  *
14907
14951
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14908
14952
  *
14953
+ * **Important**:
14954
+ *
14955
+ * - The `getAsync` method doesn't return {@link https://support.microsoft.com/office/88ff6c60-0a1d-4b54-8c9d-9e1a71bc3023 | personal contact groups} that
14956
+ * were added to the **Location** field of an appointment.
14957
+ *
14958
+ * - If a location was added using `Office.context.mailbox.item.location.setAsync`, its location type is `Office.MailboxEnums.LocationType.Custom`.
14959
+ *
14909
14960
  * @param callback Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
14910
- * `asyncResult`, which is an `Office.AsyncResult` object.
14961
+ * `asyncResult`, which is an `Office.AsyncResult` object. An array of `Office.LocationDetails` objects representing the locations of the
14962
+ * appointment is returned in the `asyncResult.value` property.
14911
14963
  */
14912
14964
  getAsync(callback?: (asyncResult: Office.AsyncResult<LocationDetails[]>) => void): void;
14913
14965
  /**
@@ -17380,6 +17432,10 @@ declare namespace Office {
17380
17432
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17381
17433
  *
17382
17434
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17435
+ *
17436
+ * **Important**: The Office.EnhancedLocation API was introduced in Mailbox requirement set 1.8. Use the EnhancedLocation API to better identify and manage
17437
+ * appointment locations, especially if you need to determine the location type. For guidance on selecting the right location API for your scenario, see
17438
+ * {@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}.
17383
17439
  */
17384
17440
  interface Location {
17385
17441
  /**
@@ -17431,6 +17487,9 @@ declare namespace Office {
17431
17487
  *
17432
17488
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17433
17489
  *
17490
+ * **Important**: To ensure that multiple locations resolve correctly in Outlook, separate them with a semicolon and a space. For example,
17491
+ * "Conference Room 1; Conference Room 2".
17492
+ *
17434
17493
  * **Errors**:
17435
17494
  *
17436
17495
  * - DataExceedsMaximumSize: The location parameter is longer than 255 characters.
@@ -17455,6 +17514,9 @@ declare namespace Office {
17455
17514
  *
17456
17515
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17457
17516
  *
17517
+ * **Important**: To ensure that multiple locations resolve correctly in Outlook, separate them with a semicolon and a space. For example,
17518
+ * "Conference Room 1; Conference Room 2".
17519
+ *
17458
17520
  * **Errors**:
17459
17521
  *
17460
17522
  * - DataExceedsMaximumSize: The location parameter is longer than 255 characters.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.646",
3
+ "version": "1.0.648",
4
4
  "description": "TypeScript definitions for office-js-preview",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "67188fae923a68af6bf41ff1d278b62bf3ea647f98ba4d1c4bc8804e188f2d6d",
49
+ "typesPublisherContentHash": "4897ee84b327c33cfd81a116cbacdf04d1010cadd3f540ae237af15f59f6cff4",
50
50
  "typeScriptVersion": "5.2",
51
51
  "nonNpm": true
52
52
  }