@types/office-js 1.0.411 → 1.0.412

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: Thu, 08 Aug 2024 16:08:15 GMT
11
+ * Last updated: Mon, 12 Aug 2024 18:39:04 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -12588,18 +12588,6 @@ declare namespace Office {
12588
12588
  * To use `appendOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. See {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}. To learn more
12589
12589
  * about append-on-send and its configuration, see
12590
12590
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/append-on-send | Implement append-on-send in your Outlook add-in}.
12591
- *
12592
- * **Important**: If the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins?tabs=windows | on-send feature}
12593
- * is implemented with append-on-send, the following apply.
12594
- *
12595
- * - If the user is running add-ins that implement the on-send feature using `ItemSend` in the manifest, append-on-send runs before on-send functionality.
12596
- *
12597
- * - If your add-in implements the on-send feature and calls `appendOnSendAsync` in the `ItemSend` handler,
12598
- * the `appendOnSendAsync` call returns an error as this scenario isn't supported.
12599
- *
12600
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12601
- *
12602
- * **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12603
12591
  *
12604
12592
  * @remarks
12605
12593
  * [Api set: Mailbox 1.9]
@@ -12608,6 +12596,22 @@ declare namespace Office {
12608
12596
  *
12609
12597
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12610
12598
  *
12599
+ * **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
12600
+ *
12601
+ * **Important**:
12602
+ *
12603
+ * - If the user is running add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins | on-send feature}
12604
+ * using `ItemSend` in the manifest, append-on-send runs before on-send functionality.
12605
+ *
12606
+ * - If your add-in implements the on-send feature and calls `appendOnSendAsync` in the `ItemSend` handler,
12607
+ * the `appendOnSendAsync` call returns an error as this scenario isn't supported.
12608
+ *
12609
+ * - To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12610
+ *
12611
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12612
+ *
12613
+ * - The `appendOnSendAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12614
+ *
12611
12615
  * **Errors**:
12612
12616
  *
12613
12617
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 5,000 characters.
@@ -12628,18 +12632,6 @@ declare namespace Office {
12628
12632
  * To use `appendOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. See {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}. To learn more
12629
12633
  * about append-on-send and its configuration, see
12630
12634
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/append-on-send | Implement append-on-send in your Outlook add-in}.
12631
- *
12632
- * **Important**: If the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins?tabs=windows | on-send feature}
12633
- * is implemented with append-on-send, the following apply.
12634
- *
12635
- * - If the user is running add-ins that implement the on-send feature using `ItemSend` in the manifest, append-on-send runs before on-send functionality.
12636
- *
12637
- * - If your add-in implements the on-send feature and calls `appendOnSendAsync` in the `ItemSend` handler,
12638
- * the `appendOnSendAsync` call returns an error as this scenario isn't supported.
12639
- *
12640
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12641
- *
12642
- * **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12643
12635
  *
12644
12636
  * @remarks
12645
12637
  * [Api set: Mailbox 1.9]
@@ -12648,6 +12640,22 @@ declare namespace Office {
12648
12640
  *
12649
12641
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12650
12642
  *
12643
+ * **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
12644
+ *
12645
+ * **Important**:
12646
+ *
12647
+ * - If the user is running add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins | on-send feature}
12648
+ * using `ItemSend` in the manifest, append-on-send runs before on-send functionality.
12649
+ *
12650
+ * - If your add-in implements the on-send feature and calls `appendOnSendAsync` in the `ItemSend` handler,
12651
+ * the `appendOnSendAsync` call returns an error as this scenario isn't supported.
12652
+ *
12653
+ * - To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12654
+ *
12655
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12656
+ *
12657
+ * - The `appendOnSendAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12658
+ *
12651
12659
  * **Errors**:
12652
12660
  *
12653
12661
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 5,000 characters.
@@ -12753,6 +12761,8 @@ declare namespace Office {
12753
12761
  *
12754
12762
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12755
12763
  *
12764
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12765
+ *
12756
12766
  * **Important**:
12757
12767
  *
12758
12768
  * - After the content is prepended, the position of the cursor depends on which client the add-in is running. In Outlook on the web and on Windows
@@ -12772,7 +12782,9 @@ declare namespace Office {
12772
12782
  * supported. For more information on supported APIs in Outlook mobile, see
12773
12783
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
12774
12784
  *
12775
- * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12785
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12786
+ *
12787
+ * - The `prependAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12776
12788
  *
12777
12789
  * **Errors**:
12778
12790
  *
@@ -12796,6 +12808,8 @@ declare namespace Office {
12796
12808
  *
12797
12809
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12798
12810
  *
12811
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12812
+ *
12799
12813
  * **Important**:
12800
12814
  *
12801
12815
  * - After the content is prepended, the position of the cursor depends on which client the add-in is running. In Outlook on the web and on Windows
@@ -12815,7 +12829,9 @@ declare namespace Office {
12815
12829
  * supported. For more information on supported APIs in Outlook mobile, see
12816
12830
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
12817
12831
  *
12818
- * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12832
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12833
+ *
12834
+ * - The `prependAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12819
12835
  *
12820
12836
  * **Errors**:
12821
12837
  *
@@ -12828,37 +12844,41 @@ declare namespace Office {
12828
12844
  prependAsync(data: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
12829
12845
  /**
12830
12846
  * Prepends HTML or plain text to the beginning of a message or appointment body when the mail item is sent.
12831
- *
12847
+ *
12832
12848
  * To use `prependOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. For guidance,
12833
12849
  * see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}.
12834
- *
12850
+ *
12835
12851
  * @remarks
12836
12852
  * [Api set: Mailbox 1.13]
12837
- *
12853
+ *
12838
12854
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
12839
12855
  *
12840
12856
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12841
- *
12857
+ *
12842
12858
  * **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
12843
- *
12859
+ *
12844
12860
  * **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
12845
- *
12861
+ *
12846
12862
  * - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in},
12847
12863
  * the prepend-on-send feature runs first.
12848
- *
12864
+ *
12849
12865
  * - A new line is added after the prepended content.
12850
- *
12866
+ *
12851
12867
  * - If multiple active add-ins call `prependOnSendAsync`, the order of the inserted content depends on the order in which the add-in runs.
12852
12868
  * The content of the last run add-in appears above previously prepended content.
12853
- *
12869
+ *
12854
12870
  * - If the add-in attempts to insert HTML into a plain text body, the content won't be prepended. Conversely, plain text will be inserted into an HTML body.
12855
- *
12871
+ *
12872
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12873
+ *
12874
+ * - The `prependOnSendAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12875
+ *
12856
12876
  * **Errors**:
12857
- *
12877
+ *
12858
12878
  * - `DataExceedsMaximumSize`: The `data` parameter exceeds 5,000 characters.
12859
- *
12879
+ *
12860
12880
  * - `InvalidFormatError`: The `options.coercionType` parameter is set to `Office.CoercionType.Html`, but the item body is in plain text format.
12861
- *
12881
+ *
12862
12882
  * @param data - The string to be prepended to the beginning of the message or appointment body. The string is limited to 5,000 characters.
12863
12883
  * @param options - An object literal that contains one or more of the following properties:-
12864
12884
  * `asyncContext`: Any object that can be accessed in the callback function.
@@ -12869,37 +12889,41 @@ declare namespace Office {
12869
12889
  prependOnSendAsync(data: string, options: Office.AsyncContextOptions & CoercionTypeOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
12870
12890
  /**
12871
12891
  * Prepends HTML or plain text to the beginning of a message or appointment body when the mail item is sent.
12872
- *
12892
+ *
12873
12893
  * To use `prependOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. For guidance,
12874
12894
  * see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}.
12875
- *
12895
+ *
12876
12896
  * @remarks
12877
12897
  * [Api set: Mailbox 1.13]
12878
- *
12898
+ *
12879
12899
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
12880
12900
  *
12881
12901
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12882
- *
12902
+ *
12883
12903
  * **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
12884
- *
12904
+ *
12885
12905
  * **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
12886
- *
12906
+ *
12887
12907
  * - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in},
12888
12908
  * the prepend-on-send feature runs first.
12889
- *
12909
+ *
12890
12910
  * - A new line is added after the prepended content.
12891
- *
12911
+ *
12892
12912
  * - If multiple active add-ins call `prependOnSendAsync`, the order of the inserted content depends on the order in which the add-in runs.
12893
12913
  * The content of the last run add-in appears above previously prepended content.
12894
- *
12914
+ *
12895
12915
  * - If the add-in attempts to insert HTML into a plain text body, the content won't be prepended. Conversely, plain text will be inserted into an HTML body.
12896
- *
12916
+ *
12917
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12918
+ *
12919
+ * - The `prependOnSendAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12920
+ *
12897
12921
  * **Errors**:
12898
- *
12922
+ *
12899
12923
  * - `DataExceedsMaximumSize`: The `data` parameter exceeds 5,000 characters.
12900
- *
12924
+ *
12901
12925
  * - `InvalidFormatError`: The `options.coercionType` parameter is set to `Office.CoercionType.Html`, but the item body is in plain text format.
12902
- *
12926
+ *
12903
12927
  * @param data - The string to be prepended to the beginning of the message or appointment body. The string is limited to 5,000 characters.
12904
12928
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
12905
12929
  * of type `Office.AsyncResult`. Any errors encountered will be provided in the `asyncResult.error` property.
@@ -12915,6 +12939,8 @@ declare namespace Office {
12915
12939
  *
12916
12940
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12917
12941
  *
12942
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12943
+ *
12918
12944
  * **Important**:
12919
12945
  *
12920
12946
  * - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running.
@@ -12936,7 +12962,9 @@ declare namespace Office {
12936
12962
  * supported. For more information on supported APIs in Outlook mobile, see
12937
12963
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
12938
12964
  *
12939
- * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12965
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12966
+ *
12967
+ * - The `setAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12940
12968
  *
12941
12969
  * **Errors**:
12942
12970
  *
@@ -12962,6 +12990,8 @@ declare namespace Office {
12962
12990
  *
12963
12991
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12964
12992
  *
12993
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12994
+ *
12965
12995
  * **Important**:
12966
12996
  *
12967
12997
  * - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running.
@@ -12983,7 +13013,9 @@ declare namespace Office {
12983
13013
  * supported. For more information on supported APIs in Outlook mobile, see
12984
13014
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
12985
13015
  *
12986
- * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
13016
+ * - SVG files aren't supported. Use JPG or PNG files instead.
13017
+ *
13018
+ * - The `setAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12987
13019
  *
12988
13020
  * **Errors**:
12989
13021
  *
@@ -13003,11 +13035,6 @@ declare namespace Office {
13003
13035
  * the editor, it replaces the selected text. If the cursor was never in the body of the item, or if the body of the item lost focus in the
13004
13036
  * UI, the string will be inserted at the top of the body content. After insertion, the cursor is placed at the end of the inserted content.
13005
13037
  *
13006
- * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
13007
- * (see the **Examples** section for a sample).
13008
- *
13009
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
13010
- *
13011
13038
  * @remarks
13012
13039
  * [Api set: Mailbox 1.1]
13013
13040
  *
@@ -13015,6 +13042,17 @@ declare namespace Office {
13015
13042
  *
13016
13043
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13017
13044
  *
13045
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
13046
+ *
13047
+ * **Important*:
13048
+ *
13049
+ * - When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
13050
+ * (see the **Examples** section for a sample).
13051
+ *
13052
+ * - SVG files aren't supported. Use JPG or PNG files instead.
13053
+ *
13054
+ * - The `setSelectedDataAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13055
+ *
13018
13056
  * **Errors**:
13019
13057
  *
13020
13058
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 1,000,000 characters.
@@ -13036,11 +13074,6 @@ declare namespace Office {
13036
13074
  * the editor, it replaces the selected text. If the cursor was never in the body of the item, or if the body of the item lost focus in the
13037
13075
  * UI, the string will be inserted at the top of the body content. After insertion, the cursor is placed at the end of the inserted content.
13038
13076
  *
13039
- * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
13040
- * (see the **Examples** section for a sample).
13041
- *
13042
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
13043
- *
13044
13077
  * @remarks
13045
13078
  * [Api set: Mailbox 1.1]
13046
13079
  *
@@ -13048,6 +13081,17 @@ declare namespace Office {
13048
13081
  *
13049
13082
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13050
13083
  *
13084
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
13085
+ *
13086
+ * **Important*:
13087
+ *
13088
+ * - When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
13089
+ * (see the **Examples** section for a sample).
13090
+ *
13091
+ * - SVG files aren't supported. Use JPG or PNG files instead.
13092
+ *
13093
+ * - The `setSelectedDataAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13094
+ *
13051
13095
  * **Errors**:
13052
13096
  *
13053
13097
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 1,000,000 characters.
@@ -13084,6 +13128,10 @@ declare namespace Office {
13084
13128
  * When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
13085
13129
  * if the user closes the form without making other edits, they won't be prompted to save changes.
13086
13130
  *
13131
+ * - SVG files aren't supported in mail signatures. Use JPG or PNG files instead.
13132
+ *
13133
+ * - The `setSignatureAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13134
+ *
13087
13135
  * **Errors**:
13088
13136
  *
13089
13137
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 30,000 characters.
@@ -13124,6 +13172,10 @@ declare namespace Office {
13124
13172
  * When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
13125
13173
  * if the user closes the form without making other edits, they won't be prompted to save changes.
13126
13174
  *
13175
+ * - SVG files aren't supported in mail signatures. Use JPG or PNG files instead.
13176
+ *
13177
+ * - The `setSignatureAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13178
+ *
13127
13179
  * **Errors**:
13128
13180
  *
13129
13181
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 30,000 characters.
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.411",
3
+ "version": "1.0.412",
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": "294aa411a4ab747a5fafc736077f6b749a4ee0ae4328b51d3ce5b0a9fa46aaaf",
48
+ "typesPublisherContentHash": "5b233252e5b8991ddebae66b8e74df96960f11a01f7639737e9e43263d38c9a9",
49
49
  "typeScriptVersion": "4.8"
50
50
  }