@types/office-js 1.0.439 → 1.0.441
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 +212 -0
- 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: Tue, 29 Oct 2024 18:37:44 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -17739,6 +17739,14 @@ declare namespace Office {
|
|
|
17739
17739
|
* <td>New messages and message replies</td>
|
|
17740
17740
|
* </tr>
|
|
17741
17741
|
* <tr>
|
|
17742
|
+
* <td>IPM.Note.SMIME</td>
|
|
17743
|
+
* <td>Encrypted messages that can also be signed</td>
|
|
17744
|
+
* </tr>
|
|
17745
|
+
* <tr>
|
|
17746
|
+
* <td>IPM.Note.SMIME.MultipartSigned</td>
|
|
17747
|
+
* <td>Clear-signed messages</td>
|
|
17748
|
+
* </tr>
|
|
17749
|
+
* <tr>
|
|
17742
17750
|
* <td>IPM.Schedule.Meeting.Request</td>
|
|
17743
17751
|
* <td>Meeting requests</td>
|
|
17744
17752
|
* </tr>
|
|
@@ -116955,6 +116963,109 @@ declare namespace PowerPoint {
|
|
|
116955
116963
|
*/
|
|
116956
116964
|
slideMasterId?: string;
|
|
116957
116965
|
}
|
|
116966
|
+
/**
|
|
116967
|
+
* Represents a single hyperlink.
|
|
116968
|
+
*
|
|
116969
|
+
* @remarks
|
|
116970
|
+
* [Api set: PowerPointApi 1.6]
|
|
116971
|
+
*/
|
|
116972
|
+
class Hyperlink extends OfficeExtension.ClientObject {
|
|
116973
|
+
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
116974
|
+
context: RequestContext;
|
|
116975
|
+
/**
|
|
116976
|
+
* Specifies the URL target of the hyperlink.
|
|
116977
|
+
*
|
|
116978
|
+
* @remarks
|
|
116979
|
+
* [Api set: PowerPointApi 1.6]
|
|
116980
|
+
*/
|
|
116981
|
+
address: string;
|
|
116982
|
+
/**
|
|
116983
|
+
* Specifies the string displayed when hovering over the hyperlink.
|
|
116984
|
+
*
|
|
116985
|
+
* @remarks
|
|
116986
|
+
* [Api set: PowerPointApi 1.6]
|
|
116987
|
+
*/
|
|
116988
|
+
screenTip: string;
|
|
116989
|
+
/**
|
|
116990
|
+
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
116991
|
+
*
|
|
116992
|
+
* @param options Provides options for which properties of the object to load.
|
|
116993
|
+
*/
|
|
116994
|
+
load(options?: PowerPoint.Interfaces.HyperlinkLoadOptions): PowerPoint.Hyperlink;
|
|
116995
|
+
/**
|
|
116996
|
+
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
116997
|
+
*
|
|
116998
|
+
* @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
|
|
116999
|
+
*/
|
|
117000
|
+
load(propertyNames?: string | string[]): PowerPoint.Hyperlink;
|
|
117001
|
+
/**
|
|
117002
|
+
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
117003
|
+
*
|
|
117004
|
+
* @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
|
|
117005
|
+
*/
|
|
117006
|
+
load(propertyNamesAndPaths?: {
|
|
117007
|
+
select?: string;
|
|
117008
|
+
expand?: string;
|
|
117009
|
+
}): PowerPoint.Hyperlink;
|
|
117010
|
+
/**
|
|
117011
|
+
* Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
|
|
117012
|
+
* Whereas the original `PowerPoint.Hyperlink` object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `PowerPoint.Interfaces.HyperlinkData`) that contains shallow copies of any loaded child properties from the original object.
|
|
117013
|
+
*/
|
|
117014
|
+
toJSON(): PowerPoint.Interfaces.HyperlinkData;
|
|
117015
|
+
}
|
|
117016
|
+
/**
|
|
117017
|
+
* Represents a collection of hyperlinks.
|
|
117018
|
+
*
|
|
117019
|
+
* @remarks
|
|
117020
|
+
* [Api set: PowerPointApi 1.6]
|
|
117021
|
+
*/
|
|
117022
|
+
class HyperlinkCollection extends OfficeExtension.ClientObject {
|
|
117023
|
+
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
117024
|
+
context: RequestContext;
|
|
117025
|
+
/** Gets the loaded child items in this collection. */
|
|
117026
|
+
readonly items: PowerPoint.Hyperlink[];
|
|
117027
|
+
/**
|
|
117028
|
+
* Gets the number of hyperlinks in the collection.
|
|
117029
|
+
*
|
|
117030
|
+
* @remarks
|
|
117031
|
+
* [Api set: PowerPointApi 1.6]
|
|
117032
|
+
* @returns The number of hyperlinks in the collection.
|
|
117033
|
+
*/
|
|
117034
|
+
getCount(): OfficeExtension.ClientResult<number>;
|
|
117035
|
+
/**
|
|
117036
|
+
* Gets a hyperlink using its zero-based index in the collection. An error is thrown if the index is out of range.
|
|
117037
|
+
*
|
|
117038
|
+
* @remarks
|
|
117039
|
+
* [Api set: PowerPointApi 1.6]
|
|
117040
|
+
*
|
|
117041
|
+
* @param index The index of the hyperlink in the collection.
|
|
117042
|
+
* @returns The hyperlink at the given index. An error is thrown if index is out of range.
|
|
117043
|
+
*/
|
|
117044
|
+
getItemAt(index: number): PowerPoint.Hyperlink;
|
|
117045
|
+
/**
|
|
117046
|
+
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
117047
|
+
*
|
|
117048
|
+
* @param options Provides options for which properties of the object to load.
|
|
117049
|
+
*/
|
|
117050
|
+
load(options?: PowerPoint.Interfaces.HyperlinkCollectionLoadOptions & PowerPoint.Interfaces.CollectionLoadOptions): PowerPoint.HyperlinkCollection;
|
|
117051
|
+
/**
|
|
117052
|
+
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
117053
|
+
*
|
|
117054
|
+
* @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
|
|
117055
|
+
*/
|
|
117056
|
+
load(propertyNames?: string | string[]): PowerPoint.HyperlinkCollection;
|
|
117057
|
+
/**
|
|
117058
|
+
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
117059
|
+
*
|
|
117060
|
+
* @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
|
|
117061
|
+
*/
|
|
117062
|
+
load(propertyNamesAndPaths?: OfficeExtension.LoadOption): PowerPoint.HyperlinkCollection;
|
|
117063
|
+
/**
|
|
117064
|
+
* Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
|
|
117065
|
+
* Whereas the original `PowerPoint.HyperlinkCollection` object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `PowerPoint.Interfaces.HyperlinkCollectionData`) that contains an "items" array with shallow copies of any loaded properties from the collection's items.
|
|
117066
|
+
*/
|
|
117067
|
+
toJSON(): PowerPoint.Interfaces.HyperlinkCollectionData;
|
|
117068
|
+
}
|
|
116958
117069
|
/**
|
|
116959
117070
|
* Specifies the connector type for line shapes.
|
|
116960
117071
|
*
|
|
@@ -118853,6 +118964,13 @@ declare namespace PowerPoint {
|
|
|
118853
118964
|
class Slide extends OfficeExtension.ClientObject {
|
|
118854
118965
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
118855
118966
|
context: RequestContext;
|
|
118967
|
+
/**
|
|
118968
|
+
* Returns a collection of hyperlinks in the slide.
|
|
118969
|
+
*
|
|
118970
|
+
* @remarks
|
|
118971
|
+
* [Api set: PowerPointApi 1.6]
|
|
118972
|
+
*/
|
|
118973
|
+
readonly hyperlinks: PowerPoint.HyperlinkCollection;
|
|
118856
118974
|
/**
|
|
118857
118975
|
* Gets the layout of the slide.
|
|
118858
118976
|
*
|
|
@@ -120154,6 +120272,27 @@ declare namespace PowerPoint {
|
|
|
120154
120272
|
*/
|
|
120155
120273
|
$skip?: number;
|
|
120156
120274
|
}
|
|
120275
|
+
/** An interface for updating data on the `Hyperlink` object, for use in `hyperlink.set({ ... })`. */
|
|
120276
|
+
interface HyperlinkUpdateData {
|
|
120277
|
+
/**
|
|
120278
|
+
* Specifies the URL target of the hyperlink.
|
|
120279
|
+
*
|
|
120280
|
+
* @remarks
|
|
120281
|
+
* [Api set: PowerPointApi 1.6]
|
|
120282
|
+
*/
|
|
120283
|
+
address?: string;
|
|
120284
|
+
/**
|
|
120285
|
+
* Specifies the string displayed when hovering over the hyperlink.
|
|
120286
|
+
*
|
|
120287
|
+
* @remarks
|
|
120288
|
+
* [Api set: PowerPointApi 1.6]
|
|
120289
|
+
*/
|
|
120290
|
+
screenTip?: string;
|
|
120291
|
+
}
|
|
120292
|
+
/** An interface for updating data on the `HyperlinkCollection` object, for use in `hyperlinkCollection.set({ ... })`. */
|
|
120293
|
+
interface HyperlinkCollectionUpdateData {
|
|
120294
|
+
items?: PowerPoint.Interfaces.HyperlinkData[];
|
|
120295
|
+
}
|
|
120157
120296
|
/** An interface for updating data on the `ShapeCollection` object, for use in `shapeCollection.set({ ... })`. */
|
|
120158
120297
|
interface ShapeCollectionUpdateData {
|
|
120159
120298
|
items?: PowerPoint.Interfaces.ShapeData[];
|
|
@@ -120446,6 +120585,27 @@ declare namespace PowerPoint {
|
|
|
120446
120585
|
id?: string;
|
|
120447
120586
|
title?: string;
|
|
120448
120587
|
}
|
|
120588
|
+
/** An interface describing the data returned by calling `hyperlink.toJSON()`. */
|
|
120589
|
+
interface HyperlinkData {
|
|
120590
|
+
/**
|
|
120591
|
+
* Specifies the URL target of the hyperlink.
|
|
120592
|
+
*
|
|
120593
|
+
* @remarks
|
|
120594
|
+
* [Api set: PowerPointApi 1.6]
|
|
120595
|
+
*/
|
|
120596
|
+
address?: string;
|
|
120597
|
+
/**
|
|
120598
|
+
* Specifies the string displayed when hovering over the hyperlink.
|
|
120599
|
+
*
|
|
120600
|
+
* @remarks
|
|
120601
|
+
* [Api set: PowerPointApi 1.6]
|
|
120602
|
+
*/
|
|
120603
|
+
screenTip?: string;
|
|
120604
|
+
}
|
|
120605
|
+
/** An interface describing the data returned by calling `hyperlinkCollection.toJSON()`. */
|
|
120606
|
+
interface HyperlinkCollectionData {
|
|
120607
|
+
items?: PowerPoint.Interfaces.HyperlinkData[];
|
|
120608
|
+
}
|
|
120449
120609
|
/** An interface describing the data returned by calling `shapeCollection.toJSON()`. */
|
|
120450
120610
|
interface ShapeCollectionData {
|
|
120451
120611
|
items?: PowerPoint.Interfaces.ShapeData[];
|
|
@@ -120824,6 +120984,58 @@ declare namespace PowerPoint {
|
|
|
120824
120984
|
id?: boolean;
|
|
120825
120985
|
title?: boolean;
|
|
120826
120986
|
}
|
|
120987
|
+
/**
|
|
120988
|
+
* Represents a single hyperlink.
|
|
120989
|
+
*
|
|
120990
|
+
* @remarks
|
|
120991
|
+
* [Api set: PowerPointApi 1.6]
|
|
120992
|
+
*/
|
|
120993
|
+
interface HyperlinkLoadOptions {
|
|
120994
|
+
/**
|
|
120995
|
+
Specifying `$all` for the load options loads all the scalar properties (such as `Range.address`) but not the navigational properties (such as `Range.format.fill.color`).
|
|
120996
|
+
*/
|
|
120997
|
+
$all?: boolean;
|
|
120998
|
+
/**
|
|
120999
|
+
* Specifies the URL target of the hyperlink.
|
|
121000
|
+
*
|
|
121001
|
+
* @remarks
|
|
121002
|
+
* [Api set: PowerPointApi 1.6]
|
|
121003
|
+
*/
|
|
121004
|
+
address?: boolean;
|
|
121005
|
+
/**
|
|
121006
|
+
* Specifies the string displayed when hovering over the hyperlink.
|
|
121007
|
+
*
|
|
121008
|
+
* @remarks
|
|
121009
|
+
* [Api set: PowerPointApi 1.6]
|
|
121010
|
+
*/
|
|
121011
|
+
screenTip?: boolean;
|
|
121012
|
+
}
|
|
121013
|
+
/**
|
|
121014
|
+
* Represents a collection of hyperlinks.
|
|
121015
|
+
*
|
|
121016
|
+
* @remarks
|
|
121017
|
+
* [Api set: PowerPointApi 1.6]
|
|
121018
|
+
*/
|
|
121019
|
+
interface HyperlinkCollectionLoadOptions {
|
|
121020
|
+
/**
|
|
121021
|
+
Specifying `$all` for the load options loads all the scalar properties (such as `Range.address`) but not the navigational properties (such as `Range.format.fill.color`).
|
|
121022
|
+
*/
|
|
121023
|
+
$all?: boolean;
|
|
121024
|
+
/**
|
|
121025
|
+
* For EACH ITEM in the collection: Specifies the URL target of the hyperlink.
|
|
121026
|
+
*
|
|
121027
|
+
* @remarks
|
|
121028
|
+
* [Api set: PowerPointApi 1.6]
|
|
121029
|
+
*/
|
|
121030
|
+
address?: boolean;
|
|
121031
|
+
/**
|
|
121032
|
+
* For EACH ITEM in the collection: Specifies the string displayed when hovering over the hyperlink.
|
|
121033
|
+
*
|
|
121034
|
+
* @remarks
|
|
121035
|
+
* [Api set: PowerPointApi 1.6]
|
|
121036
|
+
*/
|
|
121037
|
+
screenTip?: boolean;
|
|
121038
|
+
}
|
|
120827
121039
|
/**
|
|
120828
121040
|
* Represents the collection of shapes.
|
|
120829
121041
|
*
|
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.441",
|
|
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",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "f373f8c962e060db72a7320a2d73b0f035623e97ef8cd9d00e69bd8bed779db0",
|
|
50
50
|
"typeScriptVersion": "4.8"
|
|
51
51
|
}
|