@types/office-js-preview 1.0.534 → 1.0.535
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +159 -0
- office-js-preview/package.json +2 -2
office-js-preview/README.md
CHANGED
|
@@ -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:
|
|
11
|
+
* Last updated: Thu, 21 Nov 2024 00:04:08 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -9406,6 +9406,48 @@ declare namespace Office {
|
|
|
9406
9406
|
*/
|
|
9407
9407
|
NoMove = "noMove"
|
|
9408
9408
|
}
|
|
9409
|
+
/**
|
|
9410
|
+
* Specifies the location from which an add-in wants to access data.
|
|
9411
|
+
*
|
|
9412
|
+
* @remarks
|
|
9413
|
+
*
|
|
9414
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
|
|
9415
|
+
*
|
|
9416
|
+
* **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
|
|
9417
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
9418
|
+
*/
|
|
9419
|
+
enum OpenLocation {
|
|
9420
|
+
/**
|
|
9421
|
+
* A location associated with an account within an add-in.
|
|
9422
|
+
*/
|
|
9423
|
+
AccountDocument,
|
|
9424
|
+
/**
|
|
9425
|
+
* The device's camera.
|
|
9426
|
+
*/
|
|
9427
|
+
Camera,
|
|
9428
|
+
/**
|
|
9429
|
+
* Local storage on a device.
|
|
9430
|
+
*/
|
|
9431
|
+
Local,
|
|
9432
|
+
/**
|
|
9433
|
+
* OneDrive for Business.
|
|
9434
|
+
*
|
|
9435
|
+
* **Important**: For OneDrive Personal, use OTHER.
|
|
9436
|
+
*/
|
|
9437
|
+
OnedriveForBusiness,
|
|
9438
|
+
/**
|
|
9439
|
+
* Other cloud storage providers, including OneDrive Personal.
|
|
9440
|
+
*/
|
|
9441
|
+
Other,
|
|
9442
|
+
/**
|
|
9443
|
+
* The device's photo library.
|
|
9444
|
+
*/
|
|
9445
|
+
PhotoLibrary,
|
|
9446
|
+
/**
|
|
9447
|
+
* SharePoint. Includes both SharePoint Online and SharePoint on-premises (if accessed with a Microsoft Entra ID account).
|
|
9448
|
+
*/
|
|
9449
|
+
SharePoint
|
|
9450
|
+
}
|
|
9409
9451
|
/**
|
|
9410
9452
|
* Represents the current view of Outlook on the web.
|
|
9411
9453
|
*/
|
|
@@ -10112,6 +10154,56 @@ declare namespace Office {
|
|
|
10112
10154
|
*/
|
|
10113
10155
|
Beta = "beta"
|
|
10114
10156
|
}
|
|
10157
|
+
/**
|
|
10158
|
+
* Specifies the location in which an add-in wants to save data.
|
|
10159
|
+
*
|
|
10160
|
+
* @remarks
|
|
10161
|
+
*
|
|
10162
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
|
|
10163
|
+
*
|
|
10164
|
+
* **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
|
|
10165
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
10166
|
+
*/
|
|
10167
|
+
enum SaveLocation {
|
|
10168
|
+
/**
|
|
10169
|
+
* A location associated with an account within an add-in.
|
|
10170
|
+
*/
|
|
10171
|
+
AccountDocument,
|
|
10172
|
+
/**
|
|
10173
|
+
* Box.
|
|
10174
|
+
*/
|
|
10175
|
+
Box,
|
|
10176
|
+
/**
|
|
10177
|
+
* Dropbox.
|
|
10178
|
+
*/
|
|
10179
|
+
Dropbox,
|
|
10180
|
+
/**
|
|
10181
|
+
* Google Drive.
|
|
10182
|
+
*/
|
|
10183
|
+
GoogleDrive,
|
|
10184
|
+
/**
|
|
10185
|
+
* Local storage on a device.
|
|
10186
|
+
*/
|
|
10187
|
+
Local,
|
|
10188
|
+
/**
|
|
10189
|
+
* OneDrive for Business.
|
|
10190
|
+
*
|
|
10191
|
+
* **Important**: For OneDrive Personal, use OTHER.
|
|
10192
|
+
*/
|
|
10193
|
+
OnedriveForBusiness,
|
|
10194
|
+
/**
|
|
10195
|
+
* Other cloud storage providers, including OneDrive Personal.
|
|
10196
|
+
*/
|
|
10197
|
+
Other,
|
|
10198
|
+
/**
|
|
10199
|
+
* The device's photo library.
|
|
10200
|
+
*/
|
|
10201
|
+
PhotoLibrary,
|
|
10202
|
+
/**
|
|
10203
|
+
* SharePoint. Includes both SharePoint Online and SharePoint on-premises (if accessed with a Microsoft Entra ID account).
|
|
10204
|
+
*/
|
|
10205
|
+
SharePoint
|
|
10206
|
+
}
|
|
10115
10207
|
/**
|
|
10116
10208
|
* Specifies the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events#available-send-mode-options | send mode option}
|
|
10117
10209
|
* that overrides the option set in the manifest at runtime.
|
|
@@ -17737,6 +17829,73 @@ declare namespace Office {
|
|
|
17737
17829
|
* @param userContext - Optional. Any state data that is passed to the asynchronous method.
|
|
17738
17830
|
*/
|
|
17739
17831
|
getCallbackTokenAsync(callback: (asyncResult: Office.AsyncResult<string>) => void, userContext?: any): void;
|
|
17832
|
+
/**
|
|
17833
|
+
* Returns true if the current mailbox is managed by {@link https://learn.microsoft.com/mem/intune/fundamentals/what-is-intune | Microsoft Intune}.
|
|
17834
|
+
*
|
|
17835
|
+
* @remarks
|
|
17836
|
+
*
|
|
17837
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17838
|
+
*
|
|
17839
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
|
|
17840
|
+
*
|
|
17841
|
+
* **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
|
|
17842
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
17843
|
+
*
|
|
17844
|
+
* **Errors**:
|
|
17845
|
+
*
|
|
17846
|
+
* - `MAMServiceNotAvailable`: The client is unable to fetch the mobile application management (MAM) policy.
|
|
17847
|
+
*
|
|
17848
|
+
* @returns True if the current mailbox is managed by Microsoft Intune.
|
|
17849
|
+
*/
|
|
17850
|
+
getIsIdentityManaged(): boolean;
|
|
17851
|
+
/**
|
|
17852
|
+
* Returns true if an organization's {@link https://learn.microsoft.com/mem/intune/apps/app-management | Intune mobile application management (MAM) policy}
|
|
17853
|
+
* allows an add-in to access data from the specified location.
|
|
17854
|
+
*
|
|
17855
|
+
* @remarks
|
|
17856
|
+
*
|
|
17857
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17858
|
+
*
|
|
17859
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
|
|
17860
|
+
*
|
|
17861
|
+
* **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
|
|
17862
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
17863
|
+
*
|
|
17864
|
+
* **Errors**:
|
|
17865
|
+
*
|
|
17866
|
+
* - `InvalidOpenLocationInput`: The value of the specified location is invalid.
|
|
17867
|
+
*
|
|
17868
|
+
* - `MAMServiceNotAvailable`: The client is unable to fetch the MAM policy.
|
|
17869
|
+
*
|
|
17870
|
+
* @param openLocation - The location from which the add-in is attempting to access data.
|
|
17871
|
+
*
|
|
17872
|
+
* @returns True if an organization's Intune MAM policy allows an add-in to access data from the specified location.
|
|
17873
|
+
*/
|
|
17874
|
+
getIsOpenFromLocationAllowed(openLocation: MailboxEnums.OpenLocation): boolean;
|
|
17875
|
+
/**
|
|
17876
|
+
* Returns true if an organization's {@link https://learn.microsoft.com/mem/intune/apps/app-management | Intune mobile application management (MAM) policy}
|
|
17877
|
+
* allows an add-in to save data to the specified location.
|
|
17878
|
+
*
|
|
17879
|
+
* @remarks
|
|
17880
|
+
*
|
|
17881
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17882
|
+
*
|
|
17883
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
|
|
17884
|
+
*
|
|
17885
|
+
* **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
|
|
17886
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
17887
|
+
*
|
|
17888
|
+
* **Errors**:
|
|
17889
|
+
*
|
|
17890
|
+
* - `InvalidSaveLocationInput`: The value of the specified location is invalid.
|
|
17891
|
+
*
|
|
17892
|
+
* - `MAMServiceNotAvailable`: The client is unable to fetch the MAM policy.
|
|
17893
|
+
*
|
|
17894
|
+
* @param saveLocation - The location in which the add-in is attempting to save data.
|
|
17895
|
+
*
|
|
17896
|
+
* @returns True if an organization's Intune MAM policy allows an add-in to save data to the specified location.
|
|
17897
|
+
*/
|
|
17898
|
+
getIsSaveToLocationAllowed(saveLocation: MailboxEnums.SaveLocation): boolean;
|
|
17740
17899
|
/**
|
|
17741
17900
|
* 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
17901
|
* To learn more about item multi-select, see
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.535",
|
|
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": "
|
|
49
|
+
"typesPublisherContentHash": "39b2667fb8880fbcba66c55f4c9811a33cd1325048589b18ae9e5c62830b84e3",
|
|
50
50
|
"typeScriptVersion": "4.9",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|