@types/office-js 1.0.305 → 1.0.307
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 +138 -42
- 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, 15 Dec 2022 19:33:13 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js/index.d.ts
CHANGED
|
@@ -653,6 +653,61 @@ declare namespace Office {
|
|
|
653
653
|
onVisibilityModeChanged(
|
|
654
654
|
handler: (message: VisibilityModeChangedMessage) => void,
|
|
655
655
|
): Promise<() => Promise<void>>;
|
|
656
|
+
/**
|
|
657
|
+
* Represents a modal notification dialog that can appear when the user attempts to close a document. The document won't close until the user responds.
|
|
658
|
+
* This API is only supported in Excel.
|
|
659
|
+
*
|
|
660
|
+
* @remarks
|
|
661
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
662
|
+
*/
|
|
663
|
+
beforeDocumentCloseNotification: BeforeDocumentCloseNotification;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Represents a modal notification dialog that can appear when the user attempts to close a document. The document won't close until the user responds.
|
|
667
|
+
* The notification dialog will allow the user to confirm the request to close the document or cancel the request to close the document.
|
|
668
|
+
* This API is only supported in Excel.
|
|
669
|
+
*
|
|
670
|
+
* @remarks
|
|
671
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
672
|
+
*/
|
|
673
|
+
interface BeforeDocumentCloseNotification {
|
|
674
|
+
/**
|
|
675
|
+
* Enable a modal notification dialog that appears when the user attempts to close a document. The document won't close until the user responds.
|
|
676
|
+
* This notification dialog asks the user to confirm the request to close the document, or allows the user to cancel the request to close the document.
|
|
677
|
+
* The `BeforeDocumentCloseNotification` API is only supported in Excel.
|
|
678
|
+
*
|
|
679
|
+
* @remarks
|
|
680
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
681
|
+
*/
|
|
682
|
+
enable(): Promise<void>;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Prevents the notification dialog from appearing when the user attempts to close a document.
|
|
686
|
+
* The `BeforeDocumentCloseNotification` API is only supported in Excel.
|
|
687
|
+
*
|
|
688
|
+
* @remarks
|
|
689
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
690
|
+
*/
|
|
691
|
+
disable(): Promise<void>;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Adds an event handler that detects when the `BeforeDocumentCloseNotification` close operation is cancelled.
|
|
695
|
+
* This event handler will be triggered if both of the following conditions are met.
|
|
696
|
+
*
|
|
697
|
+
* 1. The add-in calls the `enable` method on the `BeforeDocumentCloseNotification` object.
|
|
698
|
+
*
|
|
699
|
+
* 2. When the notification dialog is open, the end user clicks the **Don't close** button within the dialog, clicks the Close button in the upper right corner of the dialog, or presses the Esc key.
|
|
700
|
+
*
|
|
701
|
+
* The `BeforeDocumentCloseNotification` API is only supported in Excel.
|
|
702
|
+
* @param handler The event handler that is called when the dialog is cancelled.
|
|
703
|
+
* @returns A promise that resolves when the event handler is added.
|
|
704
|
+
*
|
|
705
|
+
* @remarks
|
|
706
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
707
|
+
*/
|
|
708
|
+
onCloseActionCancelled(
|
|
709
|
+
handler: () => void
|
|
710
|
+
): Promise<() => Promise<void>>;
|
|
656
711
|
}
|
|
657
712
|
/**
|
|
658
713
|
* An interface that contains all the functionality provided to manage the state of the Office ribbon.
|
|
@@ -10442,16 +10497,19 @@ declare namespace Office {
|
|
|
10442
10497
|
/**
|
|
10443
10498
|
* Asynchronously loads custom properties for this add-in on the selected item.
|
|
10444
10499
|
*
|
|
10445
|
-
* Custom properties are stored as key
|
|
10446
|
-
* This method returns a
|
|
10447
|
-
* current item and the current add-in. Custom properties
|
|
10500
|
+
* Custom properties are stored as key-value pairs on a per-app, per-item basis.
|
|
10501
|
+
* This method returns a {@link Office.CustomProperties | CustomProperties} object in the callback, which provides methods to access the custom properties specific to the
|
|
10502
|
+
* current item and the current add-in. Custom properties aren't encrypted on the item, so this shouldn't be used as secure storage.
|
|
10448
10503
|
*
|
|
10449
10504
|
* The custom properties are provided as a `CustomProperties` object in the `asyncResult.value` property.
|
|
10450
|
-
* This object can be used to get, set, and remove custom properties from the item
|
|
10451
|
-
* the server.
|
|
10505
|
+
* This object can be used to get, set, save, and remove custom properties from the mail item.
|
|
10452
10506
|
*
|
|
10453
10507
|
* @remarks
|
|
10508
|
+
* [Api set: Mailbox 1.1]
|
|
10454
10509
|
*
|
|
10510
|
+
* To learn more about custom properties, see
|
|
10511
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/metadata-for-an-outlook-add-in | Get and set add-in metadata for an Outlook add-in}.
|
|
10512
|
+
*
|
|
10455
10513
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
10456
10514
|
*
|
|
10457
10515
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
@@ -11717,16 +11775,19 @@ declare namespace Office {
|
|
|
11717
11775
|
/**
|
|
11718
11776
|
* Asynchronously loads custom properties for this add-in on the selected item.
|
|
11719
11777
|
*
|
|
11720
|
-
* Custom properties are stored as key
|
|
11721
|
-
* This method returns a
|
|
11722
|
-
* current item and the current add-in. Custom properties
|
|
11778
|
+
* Custom properties are stored as key-value pairs on a per-app, per-item basis.
|
|
11779
|
+
* This method returns a {@link Office.CustomProperties | CustomProperties} object in the callback, which provides methods to access the custom properties specific to the
|
|
11780
|
+
* current item and the current add-in. Custom properties aren't encrypted on the item, so this shouldn't be used as secure storage.
|
|
11723
11781
|
*
|
|
11724
|
-
* The custom properties are provided as a `CustomProperties` object in the asyncResult.value property.
|
|
11725
|
-
* This object can be used to get, set, and remove custom properties from the item
|
|
11726
|
-
* the server.
|
|
11782
|
+
* The custom properties are provided as a `CustomProperties` object in the `asyncResult.value` property.
|
|
11783
|
+
* This object can be used to get, set, save, and remove custom properties from the mail item.
|
|
11727
11784
|
*
|
|
11728
11785
|
* @remarks
|
|
11786
|
+
* [Api set: Mailbox 1.1]
|
|
11729
11787
|
*
|
|
11788
|
+
* To learn more about custom properties, see
|
|
11789
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/metadata-for-an-outlook-add-in | Get and set add-in metadata for an Outlook add-in}.
|
|
11790
|
+
*
|
|
11730
11791
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
11731
11792
|
*
|
|
11732
11793
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
@@ -12589,15 +12650,27 @@ declare namespace Office {
|
|
|
12589
12650
|
urls: string[];
|
|
12590
12651
|
}
|
|
12591
12652
|
/**
|
|
12592
|
-
* The `CustomProperties` object represents custom properties that are specific to a particular item and specific to
|
|
12593
|
-
* For example, there might be a need for
|
|
12594
|
-
* If the user revisits the same message in the future and activates the
|
|
12595
|
-
* been saved as custom properties.
|
|
12653
|
+
* The `CustomProperties` object represents custom properties that are specific to a particular mail item and specific to an Outlook add-in.
|
|
12654
|
+
* For example, there might be a need for an add-in to save some data that's specific to the current message that activated the add-in.
|
|
12655
|
+
* If the user revisits the same message in the future and activates the add-in again, the add-in will be able to retrieve the data that had
|
|
12656
|
+
* been saved as custom properties.
|
|
12596
12657
|
*
|
|
12597
|
-
*
|
|
12658
|
+
* To learn more about `CustomProperties`, see
|
|
12659
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/metadata-for-an-outlook-add-in | Get and set add-in metadata for an Outlook add-in}.
|
|
12598
12660
|
*
|
|
12599
12661
|
* @remarks
|
|
12662
|
+
* [Api set: Mailbox 1.1]
|
|
12663
|
+
*
|
|
12664
|
+
* When using custom properties in your add-in, keep in mind that:
|
|
12665
|
+
*
|
|
12666
|
+
* - Custom properties saved while in compose mode aren't transmitted to recipients of the mail item. When a message or appointment with custom
|
|
12667
|
+
* properties is sent, its properties can be accessed from the item in the Sent Items folder.
|
|
12668
|
+
* If you want to make custom data accessible to recipients, consider using {@link Office.InternetHeaders | InternetHeaders} instead.
|
|
12669
|
+
*
|
|
12670
|
+
* - The maximum length of a `CustomProperties` JSON object is 2500 characters.
|
|
12600
12671
|
*
|
|
12672
|
+
* - Outlook on Mac doesn't cache custom properties. If the user's network goes down, mail add-ins can't access their custom properties.
|
|
12673
|
+
*
|
|
12601
12674
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12602
12675
|
*
|
|
12603
12676
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -12609,7 +12682,8 @@ declare namespace Office {
|
|
|
12609
12682
|
* @returns The value of the specified custom property.
|
|
12610
12683
|
*
|
|
12611
12684
|
* @remarks
|
|
12612
|
-
*
|
|
12685
|
+
* [Api set: Mailbox 1.1]
|
|
12686
|
+
*
|
|
12613
12687
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12614
12688
|
*
|
|
12615
12689
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -12651,7 +12725,7 @@ declare namespace Office {
|
|
|
12651
12725
|
*/
|
|
12652
12726
|
remove(name: string): void;
|
|
12653
12727
|
/**
|
|
12654
|
-
* Saves
|
|
12728
|
+
* Saves custom properties to a message or appointment.
|
|
12655
12729
|
*
|
|
12656
12730
|
* You must call the `saveAsync` method to persist any changes made with the `set` method or the `remove` method of the `CustomProperties` object.
|
|
12657
12731
|
* The saving action is asynchronous.
|
|
@@ -12663,7 +12737,11 @@ declare namespace Office {
|
|
|
12663
12737
|
* Your callback function should handle this error accordingly.
|
|
12664
12738
|
*
|
|
12665
12739
|
* @remarks
|
|
12666
|
-
*
|
|
12740
|
+
* [Api set: Mailbox 1.1]
|
|
12741
|
+
*
|
|
12742
|
+
* **Important**: In Outlook on Windows, custom properties saved while in compose mode only persist after the item being composed is closed or
|
|
12743
|
+
* after `Office.context.mailbox.item.saveAsync` is called.
|
|
12744
|
+
*
|
|
12667
12745
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12668
12746
|
*
|
|
12669
12747
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -12674,7 +12752,7 @@ declare namespace Office {
|
|
|
12674
12752
|
*/
|
|
12675
12753
|
saveAsync(callback: (asyncResult: Office.AsyncResult<void>) => void, asyncContext?: any): void;
|
|
12676
12754
|
/**
|
|
12677
|
-
* Saves
|
|
12755
|
+
* Saves custom properties to a message or appointment.
|
|
12678
12756
|
*
|
|
12679
12757
|
* You must call the `saveAsync` method to persist any changes made with the `set` method or the `remove` method of the `CustomProperties` object.
|
|
12680
12758
|
* The saving action is asynchronous.
|
|
@@ -12686,7 +12764,8 @@ declare namespace Office {
|
|
|
12686
12764
|
* Your callback function should handle this error accordingly.
|
|
12687
12765
|
*
|
|
12688
12766
|
* @remarks
|
|
12689
|
-
*
|
|
12767
|
+
* [Api set: Mailbox 1.1]
|
|
12768
|
+
*
|
|
12690
12769
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12691
12770
|
*
|
|
12692
12771
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -12697,14 +12776,16 @@ declare namespace Office {
|
|
|
12697
12776
|
/**
|
|
12698
12777
|
* Sets the specified property to the specified value.
|
|
12699
12778
|
*
|
|
12700
|
-
* The `set` method sets the specified property to the specified value.
|
|
12779
|
+
* The `set` method sets the specified property to the specified value. To ensure that the set property and value persist on the mail item,
|
|
12780
|
+
* you must call the `saveAsync` method.
|
|
12701
12781
|
*
|
|
12702
12782
|
* The `set` method creates a new property if the specified property does not already exist;
|
|
12703
12783
|
* otherwise, the existing value is replaced with the new value.
|
|
12704
12784
|
* The `value` parameter can be of any type; however, it is always passed to the server as a string.
|
|
12705
12785
|
*
|
|
12706
12786
|
* @remarks
|
|
12707
|
-
*
|
|
12787
|
+
* [Api set: Mailbox 1.1]
|
|
12788
|
+
*
|
|
12708
12789
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12709
12790
|
*
|
|
12710
12791
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -15520,16 +15601,19 @@ declare namespace Office {
|
|
|
15520
15601
|
/**
|
|
15521
15602
|
* Asynchronously loads custom properties for this add-in on the selected item.
|
|
15522
15603
|
*
|
|
15523
|
-
* Custom properties are stored as key
|
|
15524
|
-
* This method returns a
|
|
15525
|
-
* current item and the current add-in. Custom properties
|
|
15604
|
+
* Custom properties are stored as key-value pairs on a per-app, per-item basis.
|
|
15605
|
+
* This method returns a {@link Office.CustomProperties | CustomProperties} object in the callback, which provides methods to access the custom properties specific to the
|
|
15606
|
+
* current item and the current add-in. Custom properties aren't encrypted on the item, so this shouldn't be used as secure storage.
|
|
15526
15607
|
*
|
|
15527
15608
|
* The custom properties are provided as a `CustomProperties` object in the `asyncResult.value` property.
|
|
15528
|
-
* This object can be used to get, set, and remove custom properties from the item
|
|
15529
|
-
* the server.
|
|
15609
|
+
* This object can be used to get, set, save, and remove custom properties from the mail item.
|
|
15530
15610
|
*
|
|
15531
15611
|
* @remarks
|
|
15612
|
+
* [Api set: Mailbox 1.1]
|
|
15532
15613
|
*
|
|
15614
|
+
* To learn more about custom properties, see
|
|
15615
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/metadata-for-an-outlook-add-in | Get and set add-in metadata for an Outlook add-in}.
|
|
15616
|
+
*
|
|
15533
15617
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
15534
15618
|
*
|
|
15535
15619
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
@@ -16707,15 +16791,19 @@ declare namespace Office {
|
|
|
16707
16791
|
/**
|
|
16708
16792
|
* Asynchronously loads custom properties for this add-in on the selected item.
|
|
16709
16793
|
*
|
|
16710
|
-
* Custom properties are stored as key
|
|
16711
|
-
* This method returns a
|
|
16712
|
-
* current item and the current add-in. Custom properties
|
|
16794
|
+
* Custom properties are stored as key-value pairs on a per-app, per-item basis.
|
|
16795
|
+
* This method returns a {@link Office.CustomProperties | CustomProperties} object in the callback, which provides methods to access the custom properties specific to the
|
|
16796
|
+
* current item and the current add-in. Custom properties aren't encrypted on the item, so this shouldn't be used as secure storage.
|
|
16713
16797
|
*
|
|
16714
16798
|
* The custom properties are provided as a `CustomProperties` object in the `asyncResult.value` property.
|
|
16715
|
-
* This object can be used to get, set, and remove custom properties from the item
|
|
16799
|
+
* This object can be used to get, set, save, and remove custom properties from the mail item.
|
|
16716
16800
|
*
|
|
16717
16801
|
* @remarks
|
|
16802
|
+
* [Api set: Mailbox 1.1]
|
|
16718
16803
|
*
|
|
16804
|
+
* To learn more about custom properties, see
|
|
16805
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/metadata-for-an-outlook-add-in | Get and set add-in metadata for an Outlook add-in}.
|
|
16806
|
+
*
|
|
16719
16807
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
16720
16808
|
*
|
|
16721
16809
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
@@ -17744,26 +17832,30 @@ declare namespace Office {
|
|
|
17744
17832
|
* The settings created by using the methods of the `RoamingSettings` object are saved per add-in and per user.
|
|
17745
17833
|
* That is, they are available only to the add-in that created them, and only from the user's mailbox in which they are saved.
|
|
17746
17834
|
*
|
|
17747
|
-
* While the Outlook add-in API limits access to these settings to only the add-in that created them, these settings
|
|
17835
|
+
* While the Outlook add-in API limits access to these settings to only the add-in that created them, these settings shouldn't be considered
|
|
17748
17836
|
* secure storage. They can be accessed by Exchange Web Services or Extended MAPI.
|
|
17749
|
-
* They
|
|
17837
|
+
* They shouldn't be used to store sensitive information, such as user credentials or security tokens.
|
|
17750
17838
|
*
|
|
17751
17839
|
* The name of a setting is a String, while the value can be a String, Number, Boolean, null, Object, or Array.
|
|
17752
17840
|
*
|
|
17753
17841
|
* The `RoamingSettings` object is accessible via the `roamingSettings` property in the `Office.context` namespace.
|
|
17842
|
+
*
|
|
17843
|
+
* To learn more about `RoamingSettings`, see
|
|
17844
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/metadata-for-an-outlook-add-in | Get and set add-in metadata for an Outlook add-in}.
|
|
17845
|
+
*
|
|
17846
|
+
* @remarks
|
|
17847
|
+
* [Api set: Mailbox 1.1]
|
|
17754
17848
|
*
|
|
17755
17849
|
* **Important**:
|
|
17756
17850
|
*
|
|
17757
17851
|
* - The `RoamingSettings` object is initialized from the persisted storage only when the add-in is first loaded.
|
|
17758
|
-
* For task panes, this means that it
|
|
17852
|
+
* For task panes, this means that it's only initialized when the task pane first opens.
|
|
17759
17853
|
* If the task pane navigates to another page or reloads the current page, the in-memory object is reset to its initial values, even if
|
|
17760
17854
|
* your add-in has persisted changes.
|
|
17761
17855
|
* The persisted changes will not be available until the task pane (or item in the case of UI-less add-ins) is closed and reopened.
|
|
17762
17856
|
*
|
|
17763
17857
|
* - When set and saved through Outlook on Windows or Mac, these settings are reflected in Outlook on the web only after a browser refresh.
|
|
17764
|
-
*
|
|
17765
|
-
* @remarks
|
|
17766
|
-
*
|
|
17858
|
+
*
|
|
17767
17859
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
17768
17860
|
*
|
|
17769
17861
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -17775,6 +17867,7 @@ declare namespace Office {
|
|
|
17775
17867
|
* @returns Type: String | Number | Boolean | Object | Array
|
|
17776
17868
|
*
|
|
17777
17869
|
* @remarks
|
|
17870
|
+
* [Api set: Mailbox 1.1]
|
|
17778
17871
|
*
|
|
17779
17872
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
17780
17873
|
*
|
|
@@ -17784,9 +17877,10 @@ declare namespace Office {
|
|
|
17784
17877
|
*/
|
|
17785
17878
|
get(name: string): any;
|
|
17786
17879
|
/**
|
|
17787
|
-
* Removes the specified setting
|
|
17880
|
+
* Removes the specified setting.
|
|
17788
17881
|
*
|
|
17789
17882
|
* @remarks
|
|
17883
|
+
* [Api set: Mailbox 1.1]
|
|
17790
17884
|
*
|
|
17791
17885
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
17792
17886
|
*
|
|
@@ -17798,11 +17892,12 @@ declare namespace Office {
|
|
|
17798
17892
|
/**
|
|
17799
17893
|
* Saves the settings.
|
|
17800
17894
|
*
|
|
17801
|
-
* Any settings previously saved by an add-in are loaded when it
|
|
17895
|
+
* Any settings previously saved by an add-in are loaded when it's initialized, so during the lifetime of the session you can just use
|
|
17802
17896
|
* the set and get methods to work with the in-memory copy of the settings property bag.
|
|
17803
|
-
* When you want to persist the settings so that they
|
|
17897
|
+
* When you want to persist the settings so that they're available the next time the add-in is used, use the `saveAsync` method.
|
|
17804
17898
|
*
|
|
17805
17899
|
* @remarks
|
|
17900
|
+
* [Api set: Mailbox 1.1]
|
|
17806
17901
|
*
|
|
17807
17902
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
17808
17903
|
*
|
|
@@ -17815,7 +17910,7 @@ declare namespace Office {
|
|
|
17815
17910
|
/**
|
|
17816
17911
|
* Sets or creates the specified setting.
|
|
17817
17912
|
*
|
|
17818
|
-
* The `set` method creates a new setting of the specified name if it
|
|
17913
|
+
* The `set` method creates a new setting of the specified name if it doesn't already exist, or sets an existing setting of the specified name.
|
|
17819
17914
|
* The value is stored in the document as the serialized JSON representation of its data type.
|
|
17820
17915
|
*
|
|
17821
17916
|
* A maximum of 32KB is available for the settings of each add-in.
|
|
@@ -17823,6 +17918,7 @@ declare namespace Office {
|
|
|
17823
17918
|
* Any changes made to settings using the `set` method will not be saved to the server until the `saveAsync` method is called.
|
|
17824
17919
|
*
|
|
17825
17920
|
* @remarks
|
|
17921
|
+
* [Api set: Mailbox 1.1]
|
|
17826
17922
|
*
|
|
17827
17923
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
17828
17924
|
*
|
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.307",
|
|
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",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "78f353be150b3dde62060d81deeabdc6619b9ac7181c129179d71f1f3fb4d403",
|
|
49
49
|
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|