@types/office-js-preview 1.0.424 → 1.0.426
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 +46 -14
- office-js-preview/package.json +2 -2
office-js-preview/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 20 Oct 2023 00:47:51 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -9702,11 +9702,11 @@ declare namespace Office {
|
|
|
9702
9702
|
Beta = "beta"
|
|
9703
9703
|
}
|
|
9704
9704
|
/**
|
|
9705
|
-
* Specifies the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
9705
|
+
* Specifies the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events#available-send-mode-options | send mode option}
|
|
9706
9706
|
* that overrides the option set in the manifest at runtime.
|
|
9707
9707
|
*
|
|
9708
9708
|
* For information on how to implement a Smart Alerts add-in, see
|
|
9709
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
9709
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Handle OnMessageSend and OnAppointmentSend events in your Outlook add-in with Smart Alerts}.
|
|
9710
9710
|
*
|
|
9711
9711
|
* @remarks
|
|
9712
9712
|
* [Api set: Mailbox preview]
|
|
@@ -9718,7 +9718,7 @@ declare namespace Office {
|
|
|
9718
9718
|
enum SendModeOverride {
|
|
9719
9719
|
/**
|
|
9720
9720
|
* Provides the **Send Anyway** option in a Smart Alerts dialog when the mail item doesn't meet the conditions of the event-based add-in.
|
|
9721
|
-
* To learn more, see the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
9721
|
+
* To learn more, see the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events#prompt-user | **prompt user** send mode option}.
|
|
9722
9722
|
*
|
|
9723
9723
|
* @beta
|
|
9724
9724
|
*/
|
|
@@ -12550,7 +12550,7 @@ declare namespace Office {
|
|
|
12550
12550
|
*
|
|
12551
12551
|
* **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
|
|
12552
12552
|
*
|
|
12553
|
-
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
12553
|
+
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in},
|
|
12554
12554
|
* the prepend-on-send feature runs first.
|
|
12555
12555
|
*
|
|
12556
12556
|
* - A new line is added after the prepended content.
|
|
@@ -12591,7 +12591,7 @@ declare namespace Office {
|
|
|
12591
12591
|
*
|
|
12592
12592
|
* **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
|
|
12593
12593
|
*
|
|
12594
|
-
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
12594
|
+
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in},
|
|
12595
12595
|
* the prepend-on-send feature runs first.
|
|
12596
12596
|
*
|
|
12597
12597
|
* - A new line is added after the prepended content.
|
|
@@ -15225,7 +15225,7 @@ declare namespace Office {
|
|
|
15225
15225
|
/**
|
|
15226
15226
|
* The `MailboxEvent` object is passed as an argument to the event handler of an add-in that implements
|
|
15227
15227
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}, including
|
|
15228
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
15228
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts},
|
|
15229
15229
|
* or the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting feature}.
|
|
15230
15230
|
* It allows the add-in to signify to the Outlook client that it has completed processing an event.
|
|
15231
15231
|
*
|
|
@@ -19780,7 +19780,7 @@ declare namespace Office {
|
|
|
19780
19780
|
delegatePermissions: MailboxEnums.DelegatePermissions;
|
|
19781
19781
|
}
|
|
19782
19782
|
/**
|
|
19783
|
-
* Specifies the behavior of a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
19783
|
+
* Specifies the behavior of a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in}
|
|
19784
19784
|
* when it completes processing an `OnMessageSend` or `OnAppointmentSend` event.
|
|
19785
19785
|
*/
|
|
19786
19786
|
interface SmartAlertsEventCompletedOptions {
|
|
@@ -19883,7 +19883,7 @@ declare namespace Office {
|
|
|
19883
19883
|
/**
|
|
19884
19884
|
* When you use the {@link Office.MailboxEvent.completed | completed method} to signal completion of an event handler
|
|
19885
19885
|
* and set its `allowEvent` property to `false`, this property overrides the
|
|
19886
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
19886
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events#available-send-mode-options | send mode option}
|
|
19887
19887
|
* specified in the manifest at runtime.
|
|
19888
19888
|
*
|
|
19889
19889
|
* For an example, see the
|
|
@@ -19898,7 +19898,7 @@ declare namespace Office {
|
|
|
19898
19898
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
19899
19899
|
*
|
|
19900
19900
|
* **Important**: Currently, `sendModeOverride` can only be set to the
|
|
19901
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
19901
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events#prompt-user | prompt user} option.
|
|
19902
19902
|
*
|
|
19903
19903
|
* @beta
|
|
19904
19904
|
*/
|
|
@@ -91984,7 +91984,7 @@ declare namespace Word {
|
|
|
91984
91984
|
*/
|
|
91985
91985
|
getBookmarkRange(name: string): Word.Range;
|
|
91986
91986
|
/**
|
|
91987
|
-
* Gets a bookmark's range. If the bookmark
|
|
91987
|
+
* Gets a bookmark's range. If the bookmark doesn't exist, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
91988
91988
|
*
|
|
91989
91989
|
* @remarks
|
|
91990
91990
|
* [Api set: WordApiHiddenDocument 1.4]
|
|
@@ -92273,6 +92273,8 @@ declare namespace Word {
|
|
|
92273
92273
|
*
|
|
92274
92274
|
* @remarks
|
|
92275
92275
|
* [Api set: WordApi 1.4]
|
|
92276
|
+
*
|
|
92277
|
+
* Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5. Support for managing fields is similar to what's available in the Word UI. However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}), the `Addin` field is editable. To learn more about Word UI clients that more fully support fields, see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
92276
92278
|
*/
|
|
92277
92279
|
class Field extends OfficeExtension.ClientObject {
|
|
92278
92280
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -92472,6 +92474,8 @@ declare namespace Word {
|
|
|
92472
92474
|
*
|
|
92473
92475
|
* @remarks
|
|
92474
92476
|
* [Api set: WordApi 1.4]
|
|
92477
|
+
*
|
|
92478
|
+
* Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5. Support for managing fields is similar to what's available in the Word UI. However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}), the `Addin` field is editable. To learn more about Word UI clients that more fully support fields, see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
92475
92479
|
*/
|
|
92476
92480
|
class FieldCollection extends OfficeExtension.ClientObject {
|
|
92477
92481
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -94909,7 +94913,7 @@ declare namespace Word {
|
|
|
94909
94913
|
*/
|
|
94910
94914
|
expandTo(range: Word.Range): Word.Range;
|
|
94911
94915
|
/**
|
|
94912
|
-
* Returns a new range that extends from this range in either direction to cover another range. This range
|
|
94916
|
+
* Returns a new range that extends from this range in either direction to cover another range. This range isn't changed. If the two ranges don't have a union, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
94913
94917
|
*
|
|
94914
94918
|
* @remarks
|
|
94915
94919
|
* [Api set: WordApi 1.3]
|
|
@@ -95089,6 +95093,20 @@ declare namespace Word {
|
|
|
95089
95093
|
* @remarks
|
|
95090
95094
|
* [Api set: WordApi 1.5]
|
|
95091
95095
|
*
|
|
95096
|
+
* Important:
|
|
95097
|
+
*
|
|
95098
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
|
|
95099
|
+
*
|
|
95100
|
+
* In Word on the web, the API supports inserting and managing the following field types.
|
|
95101
|
+
*
|
|
95102
|
+
* - Word.FieldType.addin
|
|
95103
|
+
*
|
|
95104
|
+
* - Word.FieldType.date
|
|
95105
|
+
*
|
|
95106
|
+
* - Word.FieldType.hyperlink
|
|
95107
|
+
*
|
|
95108
|
+
* - Word.FieldType.toc
|
|
95109
|
+
*
|
|
95092
95110
|
* @param insertLocation Required. The location relative to the range where the field will be inserted. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
|
95093
95111
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
95094
95112
|
* @param text Optional. Additional properties or options if needed for specified field type.
|
|
@@ -95101,6 +95119,20 @@ declare namespace Word {
|
|
|
95101
95119
|
* @remarks
|
|
95102
95120
|
* [Api set: WordApi 1.5]
|
|
95103
95121
|
*
|
|
95122
|
+
* Important:
|
|
95123
|
+
*
|
|
95124
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
|
|
95125
|
+
*
|
|
95126
|
+
* In Word on the web, the API supports inserting and managing the following field types.
|
|
95127
|
+
*
|
|
95128
|
+
* - Word.FieldType.addin
|
|
95129
|
+
*
|
|
95130
|
+
* - Word.FieldType.date
|
|
95131
|
+
*
|
|
95132
|
+
* - Word.FieldType.hyperlink
|
|
95133
|
+
*
|
|
95134
|
+
* - Word.FieldType.toc
|
|
95135
|
+
*
|
|
95104
95136
|
* @param insertLocation Required. The location relative to the range where the field will be inserted. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
|
95105
95137
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
95106
95138
|
* @param text Optional. Additional properties or options if needed for specified field type.
|
|
@@ -95200,7 +95232,7 @@ declare namespace Word {
|
|
|
95200
95232
|
*/
|
|
95201
95233
|
intersectWith(range: Word.Range): Word.Range;
|
|
95202
95234
|
/**
|
|
95203
|
-
* Returns a new range as the intersection of this range with another range. This range isn't changed. If the two ranges
|
|
95235
|
+
* Returns a new range as the intersection of this range with another range. This range isn't changed. If the two ranges aren't overlapped or adjacent, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
95204
95236
|
*
|
|
95205
95237
|
* @remarks
|
|
95206
95238
|
* [Api set: WordApi 1.3]
|
|
@@ -107224,14 +107256,14 @@ declare namespace Word {
|
|
|
107224
107256
|
*/
|
|
107225
107257
|
parentTableCell?: Word.Interfaces.TableCellLoadOptions;
|
|
107226
107258
|
/**
|
|
107227
|
-
* Gets the table cell that contains the field. If it
|
|
107259
|
+
* Gets the table cell that contains the field. If it isn't contained in a table cell, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
107228
107260
|
*
|
|
107229
107261
|
* @remarks
|
|
107230
107262
|
* [Api set: WordApi 1.4]
|
|
107231
107263
|
*/
|
|
107232
107264
|
parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
|
|
107233
107265
|
/**
|
|
107234
|
-
* Gets the table that contains the field. If it
|
|
107266
|
+
* Gets the table that contains the field. If it isn't contained in a table, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
107235
107267
|
*
|
|
107236
107268
|
* @remarks
|
|
107237
107269
|
* [Api set: WordApi 1.4]
|
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.426",
|
|
4
4
|
"description": "TypeScript definitions for office-js-preview",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "cf545930991b3d4511484678e01750acc6ee4dc82781b08b0033e1d428a92b39",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|