@types/office-js-preview 1.0.361 → 1.0.363
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 +91 -55
- 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 (https://github.com/OfficeD
|
|
|
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, 15 Dec 2022 19:33:14 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js-preview/index.d.ts
CHANGED
|
@@ -653,14 +653,12 @@ declare namespace Office {
|
|
|
653
653
|
onVisibilityModeChanged(
|
|
654
654
|
handler: (message: VisibilityModeChangedMessage) => void,
|
|
655
655
|
): Promise<() => Promise<void>>;
|
|
656
|
-
|
|
657
656
|
/**
|
|
658
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.
|
|
659
658
|
* This API is only supported in Excel.
|
|
660
659
|
*
|
|
661
660
|
* @remarks
|
|
662
|
-
*
|
|
663
|
-
* @beta
|
|
661
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
664
662
|
*/
|
|
665
663
|
beforeDocumentCloseNotification: BeforeDocumentCloseNotification;
|
|
666
664
|
}
|
|
@@ -670,8 +668,7 @@ declare namespace Office {
|
|
|
670
668
|
* This API is only supported in Excel.
|
|
671
669
|
*
|
|
672
670
|
* @remarks
|
|
673
|
-
*
|
|
674
|
-
* @beta
|
|
671
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
675
672
|
*/
|
|
676
673
|
interface BeforeDocumentCloseNotification {
|
|
677
674
|
/**
|
|
@@ -680,8 +677,7 @@ declare namespace Office {
|
|
|
680
677
|
* The `BeforeDocumentCloseNotification` API is only supported in Excel.
|
|
681
678
|
*
|
|
682
679
|
* @remarks
|
|
683
|
-
*
|
|
684
|
-
* @beta
|
|
680
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
685
681
|
*/
|
|
686
682
|
enable(): Promise<void>;
|
|
687
683
|
|
|
@@ -690,26 +686,24 @@ declare namespace Office {
|
|
|
690
686
|
* The `BeforeDocumentCloseNotification` API is only supported in Excel.
|
|
691
687
|
*
|
|
692
688
|
* @remarks
|
|
693
|
-
*
|
|
694
|
-
* @beta
|
|
689
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
695
690
|
*/
|
|
696
691
|
disable(): Promise<void>;
|
|
697
692
|
|
|
698
693
|
/**
|
|
699
694
|
* Adds an event handler that detects when the `BeforeDocumentCloseNotification` close operation is cancelled.
|
|
700
|
-
* This event handler will be triggered if
|
|
701
|
-
*
|
|
702
|
-
* 1. 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.
|
|
695
|
+
* This event handler will be triggered if both of the following conditions are met.
|
|
703
696
|
*
|
|
704
|
-
*
|
|
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.
|
|
705
700
|
*
|
|
706
701
|
* The `BeforeDocumentCloseNotification` API is only supported in Excel.
|
|
707
702
|
* @param handler The event handler that is called when the dialog is cancelled.
|
|
708
703
|
* @returns A promise that resolves when the event handler is added.
|
|
709
704
|
*
|
|
710
705
|
* @remarks
|
|
711
|
-
*
|
|
712
|
-
* @beta
|
|
706
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
|
|
713
707
|
*/
|
|
714
708
|
onCloseActionCancelled(
|
|
715
709
|
handler: () => void
|
|
@@ -10595,16 +10589,19 @@ declare namespace Office {
|
|
|
10595
10589
|
/**
|
|
10596
10590
|
* Asynchronously loads custom properties for this add-in on the selected item.
|
|
10597
10591
|
*
|
|
10598
|
-
* Custom properties are stored as key
|
|
10599
|
-
* This method returns a
|
|
10600
|
-
* current item and the current add-in. Custom properties
|
|
10592
|
+
* Custom properties are stored as key-value pairs on a per-app, per-item basis.
|
|
10593
|
+
* This method returns a {@link Office.CustomProperties | CustomProperties} object in the callback, which provides methods to access the custom properties specific to the
|
|
10594
|
+
* current item and the current add-in. Custom properties aren't encrypted on the item, so this shouldn't be used as secure storage.
|
|
10601
10595
|
*
|
|
10602
10596
|
* The custom properties are provided as a `CustomProperties` object in the `asyncResult.value` property.
|
|
10603
|
-
* This object can be used to get, set, and remove custom properties from the item
|
|
10604
|
-
* the server.
|
|
10597
|
+
* This object can be used to get, set, save, and remove custom properties from the mail item.
|
|
10605
10598
|
*
|
|
10606
10599
|
* @remarks
|
|
10600
|
+
* [Api set: Mailbox 1.1]
|
|
10607
10601
|
*
|
|
10602
|
+
* To learn more about custom properties, see
|
|
10603
|
+
* {@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}.
|
|
10604
|
+
*
|
|
10608
10605
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
10609
10606
|
*
|
|
10610
10607
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
@@ -11896,16 +11893,19 @@ declare namespace Office {
|
|
|
11896
11893
|
/**
|
|
11897
11894
|
* Asynchronously loads custom properties for this add-in on the selected item.
|
|
11898
11895
|
*
|
|
11899
|
-
* Custom properties are stored as key
|
|
11900
|
-
* This method returns a
|
|
11901
|
-
* current item and the current add-in. Custom properties
|
|
11896
|
+
* Custom properties are stored as key-value pairs on a per-app, per-item basis.
|
|
11897
|
+
* This method returns a {@link Office.CustomProperties | CustomProperties} object in the callback, which provides methods to access the custom properties specific to the
|
|
11898
|
+
* current item and the current add-in. Custom properties aren't encrypted on the item, so this shouldn't be used as secure storage.
|
|
11902
11899
|
*
|
|
11903
|
-
* The custom properties are provided as a `CustomProperties` object in the asyncResult.value property.
|
|
11904
|
-
* This object can be used to get, set, and remove custom properties from the item
|
|
11905
|
-
* the server.
|
|
11900
|
+
* The custom properties are provided as a `CustomProperties` object in the `asyncResult.value` property.
|
|
11901
|
+
* This object can be used to get, set, save, and remove custom properties from the mail item.
|
|
11906
11902
|
*
|
|
11907
11903
|
* @remarks
|
|
11904
|
+
* [Api set: Mailbox 1.1]
|
|
11908
11905
|
*
|
|
11906
|
+
* To learn more about custom properties, see
|
|
11907
|
+
* {@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}.
|
|
11908
|
+
*
|
|
11909
11909
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
11910
11910
|
*
|
|
11911
11911
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
@@ -12768,15 +12768,27 @@ declare namespace Office {
|
|
|
12768
12768
|
urls: string[];
|
|
12769
12769
|
}
|
|
12770
12770
|
/**
|
|
12771
|
-
* The `CustomProperties` object represents custom properties that are specific to a particular item and specific to
|
|
12772
|
-
* For example, there might be a need for
|
|
12773
|
-
* If the user revisits the same message in the future and activates the
|
|
12774
|
-
* been saved as custom properties.
|
|
12771
|
+
* The `CustomProperties` object represents custom properties that are specific to a particular mail item and specific to an Outlook add-in.
|
|
12772
|
+
* 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.
|
|
12773
|
+
* 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
|
|
12774
|
+
* been saved as custom properties.
|
|
12775
12775
|
*
|
|
12776
|
-
*
|
|
12776
|
+
* To learn more about `CustomProperties`, see
|
|
12777
|
+
* {@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}.
|
|
12777
12778
|
*
|
|
12778
12779
|
* @remarks
|
|
12780
|
+
* [Api set: Mailbox 1.1]
|
|
12781
|
+
*
|
|
12782
|
+
* When using custom properties in your add-in, keep in mind that:
|
|
12783
|
+
*
|
|
12784
|
+
* - Custom properties saved while in compose mode aren't transmitted to recipients of the mail item. When a message or appointment with custom
|
|
12785
|
+
* properties is sent, its properties can be accessed from the item in the Sent Items folder.
|
|
12786
|
+
* If you want to make custom data accessible to recipients, consider using {@link Office.InternetHeaders | InternetHeaders} instead.
|
|
12787
|
+
*
|
|
12788
|
+
* - The maximum length of a `CustomProperties` JSON object is 2500 characters.
|
|
12779
12789
|
*
|
|
12790
|
+
* - Outlook on Mac doesn't cache custom properties. If the user's network goes down, mail add-ins can't access their custom properties.
|
|
12791
|
+
*
|
|
12780
12792
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12781
12793
|
*
|
|
12782
12794
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -12788,6 +12800,7 @@ declare namespace Office {
|
|
|
12788
12800
|
* @returns The value of the specified custom property.
|
|
12789
12801
|
*
|
|
12790
12802
|
* @remarks
|
|
12803
|
+
* [Api set: Mailbox 1.1]
|
|
12791
12804
|
*
|
|
12792
12805
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12793
12806
|
*
|
|
@@ -12821,6 +12834,7 @@ declare namespace Office {
|
|
|
12821
12834
|
* To make the removal of the property permanent, you must call the `saveAsync` method of the `CustomProperties` object.
|
|
12822
12835
|
*
|
|
12823
12836
|
* @remarks
|
|
12837
|
+
* [Api set: Mailbox 1.1]
|
|
12824
12838
|
*
|
|
12825
12839
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12826
12840
|
*
|
|
@@ -12830,7 +12844,7 @@ declare namespace Office {
|
|
|
12830
12844
|
*/
|
|
12831
12845
|
remove(name: string): void;
|
|
12832
12846
|
/**
|
|
12833
|
-
* Saves
|
|
12847
|
+
* Saves custom properties to a message or appointment.
|
|
12834
12848
|
*
|
|
12835
12849
|
* You must call the `saveAsync` method to persist any changes made with the `set` method or the `remove` method of the `CustomProperties` object.
|
|
12836
12850
|
* The saving action is asynchronous.
|
|
@@ -12842,7 +12856,11 @@ declare namespace Office {
|
|
|
12842
12856
|
* Your callback function should handle this error accordingly.
|
|
12843
12857
|
*
|
|
12844
12858
|
* @remarks
|
|
12845
|
-
*
|
|
12859
|
+
* [Api set: Mailbox 1.1]
|
|
12860
|
+
*
|
|
12861
|
+
* **Important**: In Outlook on Windows, custom properties saved while in compose mode only persist after the item being composed is closed or
|
|
12862
|
+
* after `Office.context.mailbox.item.saveAsync` is called.
|
|
12863
|
+
*
|
|
12846
12864
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12847
12865
|
*
|
|
12848
12866
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -12853,7 +12871,7 @@ declare namespace Office {
|
|
|
12853
12871
|
*/
|
|
12854
12872
|
saveAsync(callback: (asyncResult: Office.AsyncResult<void>) => void, asyncContext?: any): void;
|
|
12855
12873
|
/**
|
|
12856
|
-
* Saves
|
|
12874
|
+
* Saves custom properties to a message or appointment.
|
|
12857
12875
|
*
|
|
12858
12876
|
* You must call the `saveAsync` method to persist any changes made with the `set` method or the `remove` method of the `CustomProperties` object.
|
|
12859
12877
|
* The saving action is asynchronous.
|
|
@@ -12865,7 +12883,8 @@ declare namespace Office {
|
|
|
12865
12883
|
* Your callback function should handle this error accordingly.
|
|
12866
12884
|
*
|
|
12867
12885
|
* @remarks
|
|
12868
|
-
*
|
|
12886
|
+
* [Api set: Mailbox 1.1]
|
|
12887
|
+
*
|
|
12869
12888
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12870
12889
|
*
|
|
12871
12890
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -12876,14 +12895,16 @@ declare namespace Office {
|
|
|
12876
12895
|
/**
|
|
12877
12896
|
* Sets the specified property to the specified value.
|
|
12878
12897
|
*
|
|
12879
|
-
* The `set` method sets the specified property to the specified value.
|
|
12898
|
+
* The `set` method sets the specified property to the specified value. To ensure that the set property and value persist on the mail item,
|
|
12899
|
+
* you must call the `saveAsync` method.
|
|
12880
12900
|
*
|
|
12881
12901
|
* The `set` method creates a new property if the specified property does not already exist;
|
|
12882
12902
|
* otherwise, the existing value is replaced with the new value.
|
|
12883
12903
|
* The `value` parameter can be of any type; however, it is always passed to the server as a string.
|
|
12884
12904
|
*
|
|
12885
12905
|
* @remarks
|
|
12886
|
-
*
|
|
12906
|
+
* [Api set: Mailbox 1.1]
|
|
12907
|
+
*
|
|
12887
12908
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
12888
12909
|
*
|
|
12889
12910
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -15865,16 +15886,19 @@ declare namespace Office {
|
|
|
15865
15886
|
/**
|
|
15866
15887
|
* Asynchronously loads custom properties for this add-in on the selected item.
|
|
15867
15888
|
*
|
|
15868
|
-
* Custom properties are stored as key
|
|
15869
|
-
* This method returns a
|
|
15870
|
-
* current item and the current add-in. Custom properties
|
|
15889
|
+
* Custom properties are stored as key-value pairs on a per-app, per-item basis.
|
|
15890
|
+
* This method returns a {@link Office.CustomProperties | CustomProperties} object in the callback, which provides methods to access the custom properties specific to the
|
|
15891
|
+
* current item and the current add-in. Custom properties aren't encrypted on the item, so this shouldn't be used as secure storage.
|
|
15871
15892
|
*
|
|
15872
15893
|
* The custom properties are provided as a `CustomProperties` object in the `asyncResult.value` property.
|
|
15873
|
-
* This object can be used to get, set, and remove custom properties from the item
|
|
15874
|
-
* the server.
|
|
15894
|
+
* This object can be used to get, set, save, and remove custom properties from the mail item.
|
|
15875
15895
|
*
|
|
15876
15896
|
* @remarks
|
|
15897
|
+
* [Api set: Mailbox 1.1]
|
|
15877
15898
|
*
|
|
15899
|
+
* To learn more about custom properties, see
|
|
15900
|
+
* {@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}.
|
|
15901
|
+
*
|
|
15878
15902
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
15879
15903
|
*
|
|
15880
15904
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
@@ -17052,15 +17076,19 @@ declare namespace Office {
|
|
|
17052
17076
|
/**
|
|
17053
17077
|
* Asynchronously loads custom properties for this add-in on the selected item.
|
|
17054
17078
|
*
|
|
17055
|
-
* Custom properties are stored as key
|
|
17056
|
-
* This method returns a
|
|
17057
|
-
* current item and the current add-in. Custom properties
|
|
17079
|
+
* Custom properties are stored as key-value pairs on a per-app, per-item basis.
|
|
17080
|
+
* This method returns a {@link Office.CustomProperties | CustomProperties} object in the callback, which provides methods to access the custom properties specific to the
|
|
17081
|
+
* current item and the current add-in. Custom properties aren't encrypted on the item, so this shouldn't be used as secure storage.
|
|
17058
17082
|
*
|
|
17059
17083
|
* The custom properties are provided as a `CustomProperties` object in the `asyncResult.value` property.
|
|
17060
|
-
* This object can be used to get, set, and remove custom properties from the item
|
|
17084
|
+
* This object can be used to get, set, save, and remove custom properties from the mail item.
|
|
17061
17085
|
*
|
|
17062
17086
|
* @remarks
|
|
17087
|
+
* [Api set: Mailbox 1.1]
|
|
17063
17088
|
*
|
|
17089
|
+
* To learn more about custom properties, see
|
|
17090
|
+
* {@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}.
|
|
17091
|
+
*
|
|
17064
17092
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
17065
17093
|
*
|
|
17066
17094
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
@@ -18207,26 +18235,30 @@ declare namespace Office {
|
|
|
18207
18235
|
* The settings created by using the methods of the `RoamingSettings` object are saved per add-in and per user.
|
|
18208
18236
|
* 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.
|
|
18209
18237
|
*
|
|
18210
|
-
* While the Outlook add-in API limits access to these settings to only the add-in that created them, these settings
|
|
18238
|
+
* 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
|
|
18211
18239
|
* secure storage. They can be accessed by Exchange Web Services or Extended MAPI.
|
|
18212
|
-
* They
|
|
18240
|
+
* They shouldn't be used to store sensitive information, such as user credentials or security tokens.
|
|
18213
18241
|
*
|
|
18214
18242
|
* The name of a setting is a String, while the value can be a String, Number, Boolean, null, Object, or Array.
|
|
18215
18243
|
*
|
|
18216
18244
|
* The `RoamingSettings` object is accessible via the `roamingSettings` property in the `Office.context` namespace.
|
|
18245
|
+
*
|
|
18246
|
+
* To learn more about `RoamingSettings`, see
|
|
18247
|
+
* {@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}.
|
|
18248
|
+
*
|
|
18249
|
+
* @remarks
|
|
18250
|
+
* [Api set: Mailbox 1.1]
|
|
18217
18251
|
*
|
|
18218
18252
|
* **Important**:
|
|
18219
18253
|
*
|
|
18220
18254
|
* - The `RoamingSettings` object is initialized from the persisted storage only when the add-in is first loaded.
|
|
18221
|
-
* For task panes, this means that it
|
|
18255
|
+
* For task panes, this means that it's only initialized when the task pane first opens.
|
|
18222
18256
|
* 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
|
|
18223
18257
|
* your add-in has persisted changes.
|
|
18224
18258
|
* 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.
|
|
18225
18259
|
*
|
|
18226
18260
|
* - When set and saved through Outlook on Windows or Mac, these settings are reflected in Outlook on the web only after a browser refresh.
|
|
18227
18261
|
*
|
|
18228
|
-
* @remarks
|
|
18229
|
-
*
|
|
18230
18262
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
18231
18263
|
*
|
|
18232
18264
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -18238,6 +18270,7 @@ declare namespace Office {
|
|
|
18238
18270
|
* @returns Type: String | Number | Boolean | Object | Array
|
|
18239
18271
|
*
|
|
18240
18272
|
* @remarks
|
|
18273
|
+
* [Api set: Mailbox 1.1]
|
|
18241
18274
|
*
|
|
18242
18275
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
18243
18276
|
*
|
|
@@ -18247,9 +18280,10 @@ declare namespace Office {
|
|
|
18247
18280
|
*/
|
|
18248
18281
|
get(name: string): any;
|
|
18249
18282
|
/**
|
|
18250
|
-
* Removes the specified setting
|
|
18283
|
+
* Removes the specified setting.
|
|
18251
18284
|
*
|
|
18252
18285
|
* @remarks
|
|
18286
|
+
* [Api set: Mailbox 1.1]
|
|
18253
18287
|
*
|
|
18254
18288
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
18255
18289
|
*
|
|
@@ -18261,11 +18295,12 @@ declare namespace Office {
|
|
|
18261
18295
|
/**
|
|
18262
18296
|
* Saves the settings.
|
|
18263
18297
|
*
|
|
18264
|
-
* Any settings previously saved by an add-in are loaded when it
|
|
18298
|
+
* 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
|
|
18265
18299
|
* the set and get methods to work with the in-memory copy of the settings property bag.
|
|
18266
|
-
* When you want to persist the settings so that they
|
|
18300
|
+
* When you want to persist the settings so that they're available the next time the add-in is used, use the `saveAsync` method.
|
|
18267
18301
|
*
|
|
18268
18302
|
* @remarks
|
|
18303
|
+
* [Api set: Mailbox 1.1]
|
|
18269
18304
|
*
|
|
18270
18305
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
18271
18306
|
*
|
|
@@ -18278,7 +18313,7 @@ declare namespace Office {
|
|
|
18278
18313
|
/**
|
|
18279
18314
|
* Sets or creates the specified setting.
|
|
18280
18315
|
*
|
|
18281
|
-
* The `set` method creates a new setting of the specified name if it
|
|
18316
|
+
* 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.
|
|
18282
18317
|
* The value is stored in the document as the serialized JSON representation of its data type.
|
|
18283
18318
|
*
|
|
18284
18319
|
* A maximum of 32KB is available for the settings of each add-in.
|
|
@@ -18286,6 +18321,7 @@ declare namespace Office {
|
|
|
18286
18321
|
* Any changes made to settings using the `set` method will not be saved to the server until the `saveAsync` method is called.
|
|
18287
18322
|
*
|
|
18288
18323
|
* @remarks
|
|
18324
|
+
* [Api set: Mailbox 1.1]
|
|
18289
18325
|
*
|
|
18290
18326
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
18291
18327
|
*
|
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.363",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "49b4e9b8c2bc09c8b8d8ffb74f2236f69d654aeb759c708c1a14e7e25f8cc7e0",
|
|
49
49
|
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|