@types/office-js-preview 1.0.534 → 1.0.536

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: Tue, 19 Nov 2024 21:02:30 GMT
11
+ * Last updated: Tue, 03 Dec 2024 09:35:08 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -3519,8 +3519,6 @@ declare namespace Office {
3519
3519
  *
3520
3520
  * **Important**: In Outlook, this API isn't supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
3521
3521
  *
3522
- * **Warning**: `getAccessTokenAsync` has been deprecated. Use `Office.auth.getAccessToken` instead.
3523
- *
3524
3522
  * @deprecated Use `Office.auth.getAccessToken` instead.
3525
3523
  *
3526
3524
  * @remarks
@@ -3544,8 +3542,6 @@ declare namespace Office {
3544
3542
  *
3545
3543
  * **Important**: In Outlook, this API isn't supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
3546
3544
  *
3547
- * **Warning**: `getAccessTokenAsync` has been deprecated. Use `Office.auth.getAccessToken` instead.
3548
- *
3549
3545
  * @deprecated Use `Office.auth.getAccessToken` instead.
3550
3546
  *
3551
3547
  * @remarks
@@ -3629,8 +3625,6 @@ declare namespace Office {
3629
3625
  /**
3630
3626
  * Prompts the user to add their Office account (or to switch to it, if it is already added). Default value is `false`.
3631
3627
  *
3632
- * **Warning**: `forceAddAccount` has been deprecated. Use `allowSignInPrompt` instead.
3633
- *
3634
3628
  * @deprecated Use `allowSignInPrompt` instead.
3635
3629
  */
3636
3630
  forceAddAccount?: boolean;
@@ -3638,8 +3632,6 @@ declare namespace Office {
3638
3632
  * Causes Office to display the add-in consent experience. Useful if the add-in's Azure permissions have changed or if the user's consent has
3639
3633
  * been revoked. Default value is `false`.
3640
3634
  *
3641
- * **Warning**: `forceConsent` has been deprecated. Use `allowConsentPrompt` instead.
3642
- *
3643
3635
  * @deprecated Use `allowConsentPrompt` instead.
3644
3636
  */
3645
3637
  forceConsent?: boolean;
@@ -7213,8 +7205,6 @@ declare namespace Office {
7213
7205
  /**
7214
7206
  * Check if the specified requirement set is supported by the Office application.
7215
7207
  *
7216
- * **Warning**: This overload of `isSetSupported` (where `minVersionNumber` is a number) has been deprecated. Use the string overload of `isSetSupported` instead.
7217
- *
7218
7208
  * @deprecated Use the string overload of `isSetSupported` instead.
7219
7209
  * @param name - The requirement set name (e.g., "ExcelApi").
7220
7210
  * @param minVersionNumber - The minimum required version (e.g., 1.4).
@@ -9406,6 +9396,48 @@ declare namespace Office {
9406
9396
  */
9407
9397
  NoMove = "noMove"
9408
9398
  }
9399
+ /**
9400
+ * Specifies the location from which an add-in wants to access data.
9401
+ *
9402
+ * @remarks
9403
+ *
9404
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
9405
+ *
9406
+ * **Important**: This enum is only supported in Outlook on Android and on iOS starting in Version 4.2443.0. To learn more about APIs supported in Outlook on mobile devices, see
9407
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
9408
+ */
9409
+ enum OpenLocation {
9410
+ /**
9411
+ * A location associated with an account within an add-in.
9412
+ */
9413
+ AccountDocument,
9414
+ /**
9415
+ * The device's camera.
9416
+ */
9417
+ Camera,
9418
+ /**
9419
+ * Local storage on a device.
9420
+ */
9421
+ Local,
9422
+ /**
9423
+ * OneDrive for Business.
9424
+ *
9425
+ * **Important**: For OneDrive Personal, use OTHER.
9426
+ */
9427
+ OnedriveForBusiness,
9428
+ /**
9429
+ * Other cloud storage providers, including OneDrive Personal.
9430
+ */
9431
+ Other,
9432
+ /**
9433
+ * The device's photo library.
9434
+ */
9435
+ PhotoLibrary,
9436
+ /**
9437
+ * SharePoint. Includes both SharePoint Online and SharePoint on-premises (if accessed with a Microsoft Entra ID account).
9438
+ */
9439
+ SharePoint
9440
+ }
9409
9441
  /**
9410
9442
  * Represents the current view of Outlook on the web.
9411
9443
  */
@@ -10112,6 +10144,56 @@ declare namespace Office {
10112
10144
  */
10113
10145
  Beta = "beta"
10114
10146
  }
10147
+ /**
10148
+ * Specifies the location in which an add-in wants to save data.
10149
+ *
10150
+ * @remarks
10151
+ *
10152
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
10153
+ *
10154
+ * **Important**: This enum is only supported in Outlook on Android and on iOS starting in Version 4.2443.0. To learn more about APIs supported in Outlook on mobile devices, see
10155
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
10156
+ */
10157
+ enum SaveLocation {
10158
+ /**
10159
+ * A location associated with an account within an add-in.
10160
+ */
10161
+ AccountDocument,
10162
+ /**
10163
+ * Box.
10164
+ */
10165
+ Box,
10166
+ /**
10167
+ * Dropbox.
10168
+ */
10169
+ Dropbox,
10170
+ /**
10171
+ * Google Drive.
10172
+ */
10173
+ GoogleDrive,
10174
+ /**
10175
+ * Local storage on a device.
10176
+ */
10177
+ Local,
10178
+ /**
10179
+ * OneDrive for Business.
10180
+ *
10181
+ * **Important**: For OneDrive Personal, use OTHER.
10182
+ */
10183
+ OnedriveForBusiness,
10184
+ /**
10185
+ * Other cloud storage providers, including OneDrive Personal.
10186
+ */
10187
+ Other,
10188
+ /**
10189
+ * The device's photo library.
10190
+ */
10191
+ PhotoLibrary,
10192
+ /**
10193
+ * SharePoint. Includes both SharePoint Online and SharePoint on-premises (if accessed with a Microsoft Entra ID account).
10194
+ */
10195
+ SharePoint
10196
+ }
10115
10197
  /**
10116
10198
  * Specifies the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events#available-send-mode-options | send mode option}
10117
10199
  * that overrides the option set in the manifest at runtime.
@@ -17737,6 +17819,73 @@ declare namespace Office {
17737
17819
  * @param userContext - Optional. Any state data that is passed to the asynchronous method.
17738
17820
  */
17739
17821
  getCallbackTokenAsync(callback: (asyncResult: Office.AsyncResult<string>) => void, userContext?: any): void;
17822
+ /**
17823
+ * Returns true if the current mailbox is managed by {@link https://learn.microsoft.com/mem/intune/fundamentals/what-is-intune | Microsoft Intune}.
17824
+ *
17825
+ * @remarks
17826
+ *
17827
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17828
+ *
17829
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
17830
+ *
17831
+ * **Important**: This method is only supported in Outlook on Android and on iOS starting in Version 4.2443.0. To learn more about APIs supported in Outlook on mobile devices, see
17832
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
17833
+ *
17834
+ * **Errors**:
17835
+ *
17836
+ * - `MAMServiceNotAvailable`: The client is unable to fetch the mobile application management (MAM) policy.
17837
+ *
17838
+ * @returns True if the current mailbox is managed by Microsoft Intune.
17839
+ */
17840
+ getIsIdentityManaged(): boolean;
17841
+ /**
17842
+ * Returns true if an organization's {@link https://learn.microsoft.com/mem/intune/apps/app-management | Intune mobile application management (MAM) policy}
17843
+ * allows an add-in to access data from the specified location.
17844
+ *
17845
+ * @remarks
17846
+ *
17847
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17848
+ *
17849
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
17850
+ *
17851
+ * **Important**: This method is only supported in Outlook on Android and on iOS starting in Version 4.2443.0. To learn more about APIs supported in Outlook on mobile devices, see
17852
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
17853
+ *
17854
+ * **Errors**:
17855
+ *
17856
+ * - `InvalidOpenLocationInput`: The value of the specified location is invalid.
17857
+ *
17858
+ * - `MAMServiceNotAvailable`: The client is unable to fetch the MAM policy.
17859
+ *
17860
+ * @param openLocation - The location from which the add-in is attempting to access data.
17861
+ *
17862
+ * @returns True if an organization's Intune MAM policy allows an add-in to access data from the specified location.
17863
+ */
17864
+ getIsOpenFromLocationAllowed(openLocation: MailboxEnums.OpenLocation): boolean;
17865
+ /**
17866
+ * Returns true if an organization's {@link https://learn.microsoft.com/mem/intune/apps/app-management | Intune mobile application management (MAM) policy}
17867
+ * allows an add-in to save data to the specified location.
17868
+ *
17869
+ * @remarks
17870
+ *
17871
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17872
+ *
17873
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
17874
+ *
17875
+ * **Important**: This method is only supported in Outlook on Android and on iOS starting in Version 4.2443.0. To learn more about APIs supported in Outlook on mobile devices, see
17876
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
17877
+ *
17878
+ * **Errors**:
17879
+ *
17880
+ * - `InvalidSaveLocationInput`: The value of the specified location is invalid.
17881
+ *
17882
+ * - `MAMServiceNotAvailable`: The client is unable to fetch the MAM policy.
17883
+ *
17884
+ * @param saveLocation - The location in which the add-in is attempting to save data.
17885
+ *
17886
+ * @returns True if an organization's Intune MAM policy allows an add-in to save data to the specified location.
17887
+ */
17888
+ getIsSaveToLocationAllowed(saveLocation: MailboxEnums.SaveLocation): boolean;
17740
17889
  /**
17741
17890
  * Gets currently selected messages on which an add-in can activate and perform operations. An add-in can activate on a maximum of 100 messages at a time.
17742
17891
  * To learn more about item multi-select, see
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.534",
3
+ "version": "1.0.536",
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": "4e5c973300316f1084a4f6091f24d60f7bfeb7b65426be7a3fb45369a25578ee",
50
- "typeScriptVersion": "4.9",
49
+ "typesPublisherContentHash": "44926e5ba197c1a00430ba7a5074b1c26821acb1ed018ecfb6389836fbb1ba6d",
50
+ "typeScriptVersion": "5.0",
51
51
  "nonNpm": true
52
52
  }