@types/office-js 1.0.351 → 1.0.353
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 +44 -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: Fri, 20 Oct 2023 00:47:51 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -12355,7 +12355,7 @@ declare namespace Office {
|
|
|
12355
12355
|
*
|
|
12356
12356
|
* **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
|
|
12357
12357
|
*
|
|
12358
|
-
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
12358
|
+
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in},
|
|
12359
12359
|
* the prepend-on-send feature runs first.
|
|
12360
12360
|
*
|
|
12361
12361
|
* - A new line is added after the prepended content.
|
|
@@ -12396,7 +12396,7 @@ declare namespace Office {
|
|
|
12396
12396
|
*
|
|
12397
12397
|
* **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
|
|
12398
12398
|
*
|
|
12399
|
-
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
12399
|
+
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in},
|
|
12400
12400
|
* the prepend-on-send feature runs first.
|
|
12401
12401
|
*
|
|
12402
12402
|
* - A new line is added after the prepended content.
|
|
@@ -14886,7 +14886,7 @@ declare namespace Office {
|
|
|
14886
14886
|
/**
|
|
14887
14887
|
* The `MailboxEvent` object is passed as an argument to the event handler of an add-in that implements
|
|
14888
14888
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}, including
|
|
14889
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
14889
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts}.
|
|
14890
14890
|
* It allows the add-in to signify to the Outlook client that it has completed processing an event.
|
|
14891
14891
|
*
|
|
14892
14892
|
* @remarks
|
|
@@ -19086,7 +19086,7 @@ declare namespace Office {
|
|
|
19086
19086
|
delegatePermissions: MailboxEnums.DelegatePermissions;
|
|
19087
19087
|
}
|
|
19088
19088
|
/**
|
|
19089
|
-
* Specifies the behavior of a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/
|
|
19089
|
+
* Specifies the behavior of a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in}
|
|
19090
19090
|
* when it completes processing an `OnMessageSend` or `OnAppointmentSend` event.
|
|
19091
19091
|
*/
|
|
19092
19092
|
interface SmartAlertsEventCompletedOptions {
|
|
@@ -86558,6 +86558,8 @@ declare namespace Word {
|
|
|
86558
86558
|
*
|
|
86559
86559
|
* @remarks
|
|
86560
86560
|
* [Api set: WordApi 1.4]
|
|
86561
|
+
*
|
|
86562
|
+
* 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}.
|
|
86561
86563
|
*/
|
|
86562
86564
|
class Field extends OfficeExtension.ClientObject {
|
|
86563
86565
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -86749,6 +86751,8 @@ declare namespace Word {
|
|
|
86749
86751
|
*
|
|
86750
86752
|
* @remarks
|
|
86751
86753
|
* [Api set: WordApi 1.4]
|
|
86754
|
+
*
|
|
86755
|
+
* 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}.
|
|
86752
86756
|
*/
|
|
86753
86757
|
class FieldCollection extends OfficeExtension.ClientObject {
|
|
86754
86758
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -87868,7 +87872,7 @@ declare namespace Word {
|
|
|
87868
87872
|
*/
|
|
87869
87873
|
readonly listItemOrNullObject: Word.ListItem;
|
|
87870
87874
|
/**
|
|
87871
|
-
* Gets the List to which this paragraph belongs. If the paragraph
|
|
87875
|
+
* Gets the List to which this paragraph belongs. If the paragraph isn't in a list, 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}.
|
|
87872
87876
|
*
|
|
87873
87877
|
* @remarks
|
|
87874
87878
|
* [Api set: WordApi 1.3]
|
|
@@ -88945,6 +88949,20 @@ declare namespace Word {
|
|
|
88945
88949
|
* @remarks
|
|
88946
88950
|
* [Api set: WordApi 1.5]
|
|
88947
88951
|
*
|
|
88952
|
+
* Important:
|
|
88953
|
+
*
|
|
88954
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
|
|
88955
|
+
*
|
|
88956
|
+
* In Word on the web, the API supports inserting and managing the following field types.
|
|
88957
|
+
*
|
|
88958
|
+
* - Word.FieldType.addin
|
|
88959
|
+
*
|
|
88960
|
+
* - Word.FieldType.date
|
|
88961
|
+
*
|
|
88962
|
+
* - Word.FieldType.hyperlink
|
|
88963
|
+
*
|
|
88964
|
+
* - Word.FieldType.toc
|
|
88965
|
+
*
|
|
88948
88966
|
* @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'.
|
|
88949
88967
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
88950
88968
|
* @param text Optional. Additional properties or options if needed for specified field type.
|
|
@@ -88957,6 +88975,20 @@ declare namespace Word {
|
|
|
88957
88975
|
* @remarks
|
|
88958
88976
|
* [Api set: WordApi 1.5]
|
|
88959
88977
|
*
|
|
88978
|
+
* Important:
|
|
88979
|
+
*
|
|
88980
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
|
|
88981
|
+
*
|
|
88982
|
+
* In Word on the web, the API supports inserting and managing the following field types.
|
|
88983
|
+
*
|
|
88984
|
+
* - Word.FieldType.addin
|
|
88985
|
+
*
|
|
88986
|
+
* - Word.FieldType.date
|
|
88987
|
+
*
|
|
88988
|
+
* - Word.FieldType.hyperlink
|
|
88989
|
+
*
|
|
88990
|
+
* - Word.FieldType.toc
|
|
88991
|
+
*
|
|
88960
88992
|
* @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'.
|
|
88961
88993
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
88962
88994
|
* @param text Optional. Additional properties or options if needed for specified field type.
|
|
@@ -89969,14 +90001,14 @@ declare namespace Word {
|
|
|
89969
90001
|
*/
|
|
89970
90002
|
readonly parentTableCell: Word.TableCell;
|
|
89971
90003
|
/**
|
|
89972
|
-
* Gets the table cell that contains this table. If it
|
|
90004
|
+
* Gets the table cell that contains this table. 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}.
|
|
89973
90005
|
*
|
|
89974
90006
|
* @remarks
|
|
89975
90007
|
* [Api set: WordApi 1.3]
|
|
89976
90008
|
*/
|
|
89977
90009
|
readonly parentTableCellOrNullObject: Word.TableCell;
|
|
89978
90010
|
/**
|
|
89979
|
-
* Gets the table that contains this table. If it
|
|
90011
|
+
* Gets the table that contains this table. 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}.
|
|
89980
90012
|
*
|
|
89981
90013
|
* @remarks
|
|
89982
90014
|
* [Api set: WordApi 1.3]
|
|
@@ -90222,7 +90254,7 @@ declare namespace Word {
|
|
|
90222
90254
|
*/
|
|
90223
90255
|
getCell(rowIndex: number, cellIndex: number): Word.TableCell;
|
|
90224
90256
|
/**
|
|
90225
|
-
* Gets the table cell at a specified row and column. If the specified table cell
|
|
90257
|
+
* Gets the table cell at a specified row and column. If the specified table cell 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}.
|
|
90226
90258
|
*
|
|
90227
90259
|
* @remarks
|
|
90228
90260
|
* [Api set: WordApi 1.3]
|
|
@@ -97401,14 +97433,14 @@ declare namespace Word {
|
|
|
97401
97433
|
*/
|
|
97402
97434
|
parentTableCell?: Word.Interfaces.TableCellLoadOptions;
|
|
97403
97435
|
/**
|
|
97404
|
-
* Gets the table cell that contains the content control. If it
|
|
97436
|
+
* Gets the table cell that contains the content control. 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}.
|
|
97405
97437
|
*
|
|
97406
97438
|
* @remarks
|
|
97407
97439
|
* [Api set: WordApi 1.3]
|
|
97408
97440
|
*/
|
|
97409
97441
|
parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
|
|
97410
97442
|
/**
|
|
97411
|
-
* Gets the table that contains the content control. If it
|
|
97443
|
+
* Gets the table that contains the content control. 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}.
|
|
97412
97444
|
*
|
|
97413
97445
|
* @remarks
|
|
97414
97446
|
* [Api set: WordApi 1.3]
|
|
@@ -97567,14 +97599,14 @@ declare namespace Word {
|
|
|
97567
97599
|
*/
|
|
97568
97600
|
parentTableCell?: Word.Interfaces.TableCellLoadOptions;
|
|
97569
97601
|
/**
|
|
97570
|
-
* For EACH ITEM in the collection: Gets the table cell that contains the content control. If it
|
|
97602
|
+
* For EACH ITEM in the collection: Gets the table cell that contains the content control. 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}.
|
|
97571
97603
|
*
|
|
97572
97604
|
* @remarks
|
|
97573
97605
|
* [Api set: WordApi 1.3]
|
|
97574
97606
|
*/
|
|
97575
97607
|
parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
|
|
97576
97608
|
/**
|
|
97577
|
-
* For EACH ITEM in the collection: Gets the table that contains the content control. If it
|
|
97609
|
+
* For EACH ITEM in the collection: Gets the table that contains the content control. 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}.
|
|
97578
97610
|
*
|
|
97579
97611
|
* @remarks
|
|
97580
97612
|
* [Api set: WordApi 1.3]
|
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.353",
|
|
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": "048fcddc4ee0ee349354ef9ee9e7e4807669ee00f0bcfa27e4f5c422f66eb24b",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|