@types/office-js 1.0.448 → 1.0.449

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: Tue, 19 Nov 2024 21:02:30 GMT
11
+ * Last updated: Thu, 21 Nov 2024 00:04:08 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -9335,9 +9335,9 @@ declare namespace Office {
9335
9335
  * method. If you're on an Outlook on Windows version that only supports the `postProcessingAction` property,
9336
9336
  * you must assign it different string values. For a list of supported string values, see
9337
9337
  * {@link https://learn.microsoft.com/javascript/api/outlook/office.spamreportingeventcompletedoptions#outlook-office-spamreportingeventcompletedoptions-postprocessingaction-member |
9338
- * Office.SpamReportingEventCompletedOptions.postProcessingAction}.
9339
- */
9340
- enum MoveSpamItemTo {
9338
+ * Office.SpamReportingEventCompletedOptions.postProcessingAction}.
9339
+ */
9340
+ enum MoveSpamItemTo {
9341
9341
  /**
9342
9342
  * Specifies that a reported message is moved to a custom folder in the mailbox.
9343
9343
  */
@@ -9354,7 +9354,49 @@ declare namespace Office {
9354
9354
  * Specifies that a reported message remains in its current folder in the mailbox.
9355
9355
  */
9356
9356
  NoMove = "noMove"
9357
- }
9357
+ }
9358
+ /**
9359
+ * Specifies the location from which an add-in wants to access data.
9360
+ *
9361
+ * @remarks
9362
+ *
9363
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
9364
+ *
9365
+ * **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
9366
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
9367
+ */
9368
+ enum OpenLocation {
9369
+ /**
9370
+ * A location associated with an account within an add-in.
9371
+ */
9372
+ AccountDocument,
9373
+ /**
9374
+ * The device's camera.
9375
+ */
9376
+ Camera,
9377
+ /**
9378
+ * Local storage on a device.
9379
+ */
9380
+ Local,
9381
+ /**
9382
+ * OneDrive for Business.
9383
+ *
9384
+ * **Important**: For OneDrive Personal, use OTHER.
9385
+ */
9386
+ OnedriveForBusiness,
9387
+ /**
9388
+ * Other cloud storage providers, including OneDrive Personal.
9389
+ */
9390
+ Other,
9391
+ /**
9392
+ * The device's photo library.
9393
+ */
9394
+ PhotoLibrary,
9395
+ /**
9396
+ * SharePoint. Includes both SharePoint Online and SharePoint on-premises (if accessed with a Microsoft Entra ID account).
9397
+ */
9398
+ SharePoint
9399
+ }
9358
9400
  /**
9359
9401
  * Represents the current view of Outlook on the web.
9360
9402
  */
@@ -10061,6 +10103,56 @@ declare namespace Office {
10061
10103
  */
10062
10104
  Beta = "beta"
10063
10105
  }
10106
+ /**
10107
+ * Specifies the location in which an add-in wants to save data.
10108
+ *
10109
+ * @remarks
10110
+ *
10111
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
10112
+ *
10113
+ * **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
10114
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
10115
+ */
10116
+ enum SaveLocation {
10117
+ /**
10118
+ * A location associated with an account within an add-in.
10119
+ */
10120
+ AccountDocument,
10121
+ /**
10122
+ * Box.
10123
+ */
10124
+ Box,
10125
+ /**
10126
+ * Dropbox.
10127
+ */
10128
+ Dropbox,
10129
+ /**
10130
+ * Google Drive.
10131
+ */
10132
+ GoogleDrive,
10133
+ /**
10134
+ * Local storage on a device.
10135
+ */
10136
+ Local,
10137
+ /**
10138
+ * OneDrive for Business.
10139
+ *
10140
+ * **Important**: For OneDrive Personal, use OTHER.
10141
+ */
10142
+ OnedriveForBusiness,
10143
+ /**
10144
+ * Other cloud storage providers, including OneDrive Personal.
10145
+ */
10146
+ Other,
10147
+ /**
10148
+ * The device's photo library.
10149
+ */
10150
+ PhotoLibrary,
10151
+ /**
10152
+ * SharePoint. Includes both SharePoint Online and SharePoint on-premises (if accessed with a Microsoft Entra ID account).
10153
+ */
10154
+ SharePoint
10155
+ }
10064
10156
  /**
10065
10157
  * Specifies the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events#available-send-mode-options | send mode option}
10066
10158
  * that overrides the option set in the manifest at runtime.
@@ -15597,6 +15689,73 @@ declare namespace Office {
15597
15689
  * @param userContext - Optional. Any state data that is passed to the asynchronous method.
15598
15690
  */
15599
15691
  getCallbackTokenAsync(callback: (asyncResult: Office.AsyncResult<string>) => void, userContext?: any): void;
15692
+ /**
15693
+ * Returns true if the current mailbox is managed by {@link https://learn.microsoft.com/mem/intune/fundamentals/what-is-intune | Microsoft Intune}.
15694
+ *
15695
+ * @remarks
15696
+ *
15697
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
15698
+ *
15699
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
15700
+ *
15701
+ * **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
15702
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
15703
+ *
15704
+ * **Errors**:
15705
+ *
15706
+ * - `MAMServiceNotAvailable`: The client is unable to fetch the mobile application management (MAM) policy.
15707
+ *
15708
+ * @returns True if the current mailbox is managed by Microsoft Intune.
15709
+ */
15710
+ getIsIdentityManaged(): boolean;
15711
+ /**
15712
+ * Returns true if an organization's {@link https://learn.microsoft.com/mem/intune/apps/app-management | Intune mobile application management (MAM) policy}
15713
+ * allows an add-in to access data from the specified location.
15714
+ *
15715
+ * @remarks
15716
+ *
15717
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
15718
+ *
15719
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
15720
+ *
15721
+ * **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
15722
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
15723
+ *
15724
+ * **Errors**:
15725
+ *
15726
+ * - `InvalidOpenLocationInput`: The value of the specified location is invalid.
15727
+ *
15728
+ * - `MAMServiceNotAvailable`: The client is unable to fetch the MAM policy.
15729
+ *
15730
+ * @param openLocation - The location from which the add-in is attempting to access data.
15731
+ *
15732
+ * @returns True if an organization's Intune MAM policy allows an add-in to access data from the specified location.
15733
+ */
15734
+ getIsOpenFromLocationAllowed(openLocation: MailboxEnums.OpenLocation): boolean;
15735
+ /**
15736
+ * Returns true if an organization's {@link https://learn.microsoft.com/mem/intune/apps/app-management | Intune mobile application management (MAM) policy}
15737
+ * allows an add-in to save data to the specified location.
15738
+ *
15739
+ * @remarks
15740
+ *
15741
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
15742
+ *
15743
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
15744
+ *
15745
+ * **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
15746
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
15747
+ *
15748
+ * **Errors**:
15749
+ *
15750
+ * - `InvalidSaveLocationInput`: The value of the specified location is invalid.
15751
+ *
15752
+ * - `MAMServiceNotAvailable`: The client is unable to fetch the MAM policy.
15753
+ *
15754
+ * @param saveLocation - The location in which the add-in is attempting to save data.
15755
+ *
15756
+ * @returns True if an organization's Intune MAM policy allows an add-in to save data to the specified location.
15757
+ */
15758
+ getIsSaveToLocationAllowed(saveLocation: MailboxEnums.SaveLocation): boolean;
15600
15759
  /**
15601
15760
  * 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.
15602
15761
  * To learn more about item multi-select, see
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.448",
3
+ "version": "1.0.449",
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": "f5f3dd019545f4602c3c34a1e72602e3ee054c899f86d498709074bb14c1588e",
49
+ "typesPublisherContentHash": "fbe1ad460bb063e92ca5da8df34257cef4f2c54925e43ab7c08e540a646f4200",
50
50
  "typeScriptVersion": "4.9"
51
51
  }