@types/office-js 1.0.447 → 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 +1 -1
- office-js/index.d.ts +183 -12
- office-js/package.json +2 -2
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:
|
|
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
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
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.
|
|
@@ -10420,7 +10512,7 @@ declare namespace Office {
|
|
|
10420
10512
|
* The `addFileAttachmentAsync` method uploads the file at the specified URI and attaches it to the item in the compose form.
|
|
10421
10513
|
*
|
|
10422
10514
|
* @remarks
|
|
10423
|
-
* [Api set: Mailbox 1.1]
|
|
10515
|
+
* [Api set: Mailbox 1.1 for Outlook on Windows (classic) and on Mac, Mailbox 1.8 for Outlook on the web and new Outlook on Windows]
|
|
10424
10516
|
*
|
|
10425
10517
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10426
10518
|
*
|
|
@@ -10428,8 +10520,11 @@ declare namespace Office {
|
|
|
10428
10520
|
*
|
|
10429
10521
|
* **Important**:
|
|
10430
10522
|
*
|
|
10523
|
+
* - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
|
|
10524
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
10525
|
+
*
|
|
10431
10526
|
* - In recent builds of classic Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to
|
|
10432
|
-
* this action (whether using this API or the Outlook UI). To work around this issue,
|
|
10527
|
+
* this action (whether using this API or the Outlook UI). To work around this issue, use the `addFileAttachmentFromBase64` API
|
|
10433
10528
|
* introduced with requirement set 1.8.
|
|
10434
10529
|
*
|
|
10435
10530
|
* - The URI of the file to be attached must support caching in production. The server hosting the image shouldn't return a `Cache-Control` header that
|
|
@@ -10464,7 +10559,7 @@ declare namespace Office {
|
|
|
10464
10559
|
* The `addFileAttachmentAsync` method uploads the file at the specified URI and attaches it to the item in the compose form.
|
|
10465
10560
|
*
|
|
10466
10561
|
* @remarks
|
|
10467
|
-
* [Api set: Mailbox 1.1]
|
|
10562
|
+
* [Api set: Mailbox 1.1 for Outlook on Windows (classic) and on Mac, Mailbox 1.8 for Outlook on the web and new Outlook on Windows]
|
|
10468
10563
|
*
|
|
10469
10564
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10470
10565
|
*
|
|
@@ -10472,8 +10567,11 @@ declare namespace Office {
|
|
|
10472
10567
|
*
|
|
10473
10568
|
* **Important**:
|
|
10474
10569
|
*
|
|
10570
|
+
* - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
|
|
10571
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
10572
|
+
*
|
|
10475
10573
|
* - In recent builds of classic Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to
|
|
10476
|
-
* this action (whether using this API or the Outlook UI). To work around this issue,
|
|
10574
|
+
* this action (whether using this API or the Outlook UI). To work around this issue, use the `addFileAttachmentFromBase64` API
|
|
10477
10575
|
* introduced with requirement set 1.8.
|
|
10478
10576
|
*
|
|
10479
10577
|
* - The URI of the file to be attached must support caching in production. The server hosting the image shouldn't return a `Cache-Control` header that
|
|
@@ -15591,6 +15689,73 @@ declare namespace Office {
|
|
|
15591
15689
|
* @param userContext - Optional. Any state data that is passed to the asynchronous method.
|
|
15592
15690
|
*/
|
|
15593
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;
|
|
15594
15759
|
/**
|
|
15595
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.
|
|
15596
15761
|
* To learn more about item multi-select, see
|
|
@@ -16307,7 +16472,7 @@ declare namespace Office {
|
|
|
16307
16472
|
* The `addFileAttachmentAsync` method uploads the file at the specified URI and attaches it to the item in the compose form.
|
|
16308
16473
|
*
|
|
16309
16474
|
* @remarks
|
|
16310
|
-
* [Api set: Mailbox 1.1]
|
|
16475
|
+
* [Api set: Mailbox 1.1 for Outlook on Windows (classic) and on Mac, Mailbox 1.8 for Outlook on the web and new Outlook on Windows]
|
|
16311
16476
|
*
|
|
16312
16477
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
16313
16478
|
*
|
|
@@ -16315,8 +16480,11 @@ declare namespace Office {
|
|
|
16315
16480
|
*
|
|
16316
16481
|
* **Important**:
|
|
16317
16482
|
*
|
|
16483
|
+
* - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
|
|
16484
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
16485
|
+
*
|
|
16318
16486
|
* - In recent builds of classic Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to
|
|
16319
|
-
* this action (whether using this API or the Outlook UI). To work around this issue,
|
|
16487
|
+
* this action (whether using this API or the Outlook UI). To work around this issue, use the `addFileAttachmentFromBase64` API
|
|
16320
16488
|
* introduced with requirement set 1.8.
|
|
16321
16489
|
*
|
|
16322
16490
|
* - The URI of the file to be attached must support caching in production. The server hosting the image shouldn't return a `Cache-Control` header that
|
|
@@ -16350,7 +16518,7 @@ declare namespace Office {
|
|
|
16350
16518
|
* The `addFileAttachmentAsync` method uploads the file at the specified URI and attaches it to the item in the compose form.
|
|
16351
16519
|
*
|
|
16352
16520
|
* @remarks
|
|
16353
|
-
* [Api set: Mailbox 1.1]
|
|
16521
|
+
* [Api set: Mailbox 1.1 for Outlook on Windows (classic) and on Mac, Mailbox 1.8 for Outlook on the web and new Outlook on Windows]
|
|
16354
16522
|
*
|
|
16355
16523
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
16356
16524
|
*
|
|
@@ -16358,8 +16526,11 @@ declare namespace Office {
|
|
|
16358
16526
|
*
|
|
16359
16527
|
* **Important**:
|
|
16360
16528
|
*
|
|
16529
|
+
* - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
|
|
16530
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
16531
|
+
*
|
|
16361
16532
|
* - In recent builds of classic Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to
|
|
16362
|
-
* this action (whether using this API or the Outlook UI). To work around this issue,
|
|
16533
|
+
* this action (whether using this API or the Outlook UI). To work around this issue, use the `addFileAttachmentFromBase64` API
|
|
16363
16534
|
* introduced with requirement set 1.8.
|
|
16364
16535
|
*
|
|
16365
16536
|
* - The URI of the file to be attached must support caching in production. The server hosting the image shouldn't return a `Cache-Control` header that
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
49
|
+
"typesPublisherContentHash": "fbe1ad460bb063e92ca5da8df34257cef4f2c54925e43ab7c08e540a646f4200",
|
|
50
50
|
"typeScriptVersion": "4.9"
|
|
51
51
|
}
|