@types/office-js 1.0.417 → 1.0.419
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 +33 -36
- 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, 10 Sep 2024 18:09:15 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -8833,7 +8833,7 @@ declare namespace Office {
|
|
|
8833
8833
|
Removed = "removed"
|
|
8834
8834
|
}
|
|
8835
8835
|
/**
|
|
8836
|
-
* Specifies
|
|
8836
|
+
* Specifies the attachment's type.
|
|
8837
8837
|
*
|
|
8838
8838
|
* @remarks
|
|
8839
8839
|
*
|
|
@@ -10430,8 +10430,7 @@ declare namespace Office {
|
|
|
10430
10430
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
10431
10431
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10432
10432
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10433
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
10434
|
-
* and should not be displayed in the attachment list.
|
|
10433
|
+
* `isInline`: If true, indicates that the attachment will be shown inline as an image in the message body and won't be displayed in the attachment list.
|
|
10435
10434
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10436
10435
|
* of type `Office.AsyncResult`.
|
|
10437
10436
|
* On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
@@ -10509,8 +10508,7 @@ declare namespace Office {
|
|
|
10509
10508
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
10510
10509
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10511
10510
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10512
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
10513
|
-
* and should not be displayed in the attachment list.
|
|
10511
|
+
* `isInline`: If true, indicates that the attachment will be shown inline as an image in the message body and won't be displayed in the attachment list.
|
|
10514
10512
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10515
10513
|
* of type `Office.AsyncResult`.
|
|
10516
10514
|
* On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
@@ -12190,7 +12188,7 @@ declare namespace Office {
|
|
|
12190
12188
|
* For guidance on how to implement these rules, see
|
|
12191
12189
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins | Contextual Outlook add-ins}.
|
|
12192
12190
|
*
|
|
12193
|
-
* - This method is used with the {@link https://learn.microsoft.com/
|
|
12191
|
+
* - This method is used with the {@link https://learn.microsoft.com/javascript/api/manifest/rule | activation rules feature for Outlook add-ins},
|
|
12194
12192
|
* which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365}.
|
|
12195
12193
|
*
|
|
12196
12194
|
* - If you specify an `ItemHasRegularExpressionMatch` rule on the body property of an item, the regular expression should further filter the body
|
|
@@ -12222,7 +12220,7 @@ declare namespace Office {
|
|
|
12222
12220
|
* For guidance on how to implement these rules, see
|
|
12223
12221
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins | Contextual Outlook add-ins}.
|
|
12224
12222
|
*
|
|
12225
|
-
* - This method is used with the {@link https://learn.microsoft.com/
|
|
12223
|
+
* - This method is used with the {@link https://learn.microsoft.com/javascript/api/manifest/rule | activation rules feature for Outlook add-ins},
|
|
12226
12224
|
* which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365}.
|
|
12227
12225
|
*
|
|
12228
12226
|
* - If you specify an `ItemHasRegularExpressionMatch` rule on the body property of an item, the regular expression should further filter the body
|
|
@@ -12279,7 +12277,7 @@ declare namespace Office {
|
|
|
12279
12277
|
* For guidance on how to implement these rules, see
|
|
12280
12278
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins | Contextual Outlook add-ins}.
|
|
12281
12279
|
*
|
|
12282
|
-
* - This method is used with the {@link https://learn.microsoft.com/
|
|
12280
|
+
* - This method is used with the {@link https://learn.microsoft.com/javascript/api/manifest/rule | activation rules feature for Outlook add-ins},
|
|
12283
12281
|
* which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365}.
|
|
12284
12282
|
*
|
|
12285
12283
|
* - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
|
|
@@ -12461,7 +12459,7 @@ declare namespace Office {
|
|
|
12461
12459
|
/**
|
|
12462
12460
|
* Represents an attachment on an item. Compose mode only.
|
|
12463
12461
|
*
|
|
12464
|
-
* An array of `AttachmentDetailsCompose` objects is returned
|
|
12462
|
+
* An array of `AttachmentDetailsCompose` objects is returned by the `getAttachmentsAsync` method.
|
|
12465
12463
|
*
|
|
12466
12464
|
* @remarks
|
|
12467
12465
|
* [Api set: Mailbox 1.8]
|
|
@@ -12472,7 +12470,7 @@ declare namespace Office {
|
|
|
12472
12470
|
*/
|
|
12473
12471
|
interface AttachmentDetailsCompose {
|
|
12474
12472
|
/**
|
|
12475
|
-
* Gets a value that indicates the type
|
|
12473
|
+
* Gets a value that indicates the attachment's type.
|
|
12476
12474
|
*/
|
|
12477
12475
|
attachmentType: MailboxEnums.AttachmentType | string;
|
|
12478
12476
|
/**
|
|
@@ -12480,7 +12478,7 @@ declare namespace Office {
|
|
|
12480
12478
|
*/
|
|
12481
12479
|
id: string;
|
|
12482
12480
|
/**
|
|
12483
|
-
* Gets a value that indicates whether the attachment
|
|
12481
|
+
* Gets a value that indicates whether the attachment appears as an image in the body of the item instead of in the attachment list.
|
|
12484
12482
|
*/
|
|
12485
12483
|
isInline: boolean;
|
|
12486
12484
|
/**
|
|
@@ -12502,7 +12500,7 @@ declare namespace Office {
|
|
|
12502
12500
|
/**
|
|
12503
12501
|
* Represents an attachment on an item from the server. Read mode only.
|
|
12504
12502
|
*
|
|
12505
|
-
* An array of `AttachmentDetails` objects is returned as the attachments property of an appointment or message item.
|
|
12503
|
+
* An array of `AttachmentDetails` objects is returned as the `attachments` property of an appointment or message item.
|
|
12506
12504
|
*
|
|
12507
12505
|
* @remarks
|
|
12508
12506
|
* [Api set: Mailbox 1.1]
|
|
@@ -12513,7 +12511,7 @@ declare namespace Office {
|
|
|
12513
12511
|
*/
|
|
12514
12512
|
interface AttachmentDetails {
|
|
12515
12513
|
/**
|
|
12516
|
-
* Gets a value that indicates the type
|
|
12514
|
+
* Gets a value that indicates the attachment's type.
|
|
12517
12515
|
*/
|
|
12518
12516
|
attachmentType: MailboxEnums.AttachmentType | string;
|
|
12519
12517
|
/**
|
|
@@ -12532,7 +12530,7 @@ declare namespace Office {
|
|
|
12532
12530
|
*/
|
|
12533
12531
|
id: string;
|
|
12534
12532
|
/**
|
|
12535
|
-
* Gets a value that indicates whether the attachment
|
|
12533
|
+
* Gets a value that indicates whether the attachment appears as an image in the body of the item instead of in the attachment list.
|
|
12536
12534
|
*/
|
|
12537
12535
|
isInline: boolean;
|
|
12538
12536
|
/**
|
|
@@ -12548,7 +12546,7 @@ declare namespace Office {
|
|
|
12548
12546
|
size: number;
|
|
12549
12547
|
}
|
|
12550
12548
|
/**
|
|
12551
|
-
* Provides information about
|
|
12549
|
+
* Provides information about the attachment on a mail item that raised the
|
|
12552
12550
|
* `Office.EventType.AttachmentsChanged` event.
|
|
12553
12551
|
*
|
|
12554
12552
|
* @remarks
|
|
@@ -15247,18 +15245,18 @@ declare namespace Office {
|
|
|
15247
15245
|
*
|
|
15248
15246
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15249
15247
|
*
|
|
15250
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15248
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15251
15249
|
*
|
|
15252
15250
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15253
15251
|
*
|
|
15254
|
-
* `attachments.url`: Only used if type is set to file
|
|
15252
|
+
* `attachments.url`: Only used if the attachment type is set to `file`. The URI of the location for the file. **Important**: This link must be
|
|
15255
15253
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15256
15254
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15257
15255
|
*
|
|
15258
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15259
|
-
* message body
|
|
15256
|
+
* `attachments.isInline`: Only used if the attachment type is set to `file`. If true, indicates that the attachment will be shown inline as an image
|
|
15257
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15260
15258
|
*
|
|
15261
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15259
|
+
* `attachments.itemId`: Only used if the attachment type is set to `item`. The EWS item ID of the existing e-mail you want to attach to the new message.
|
|
15262
15260
|
* This is a string up to 100 characters.
|
|
15263
15261
|
*/
|
|
15264
15262
|
displayNewMessageForm(parameters: any): void;
|
|
@@ -15294,18 +15292,18 @@ declare namespace Office {
|
|
|
15294
15292
|
*
|
|
15295
15293
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15296
15294
|
*
|
|
15297
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15295
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15298
15296
|
*
|
|
15299
15297
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15300
15298
|
*
|
|
15301
|
-
* `attachments.url`: Only used if type is set to file
|
|
15299
|
+
* `attachments.url`: Only used if the attachment type is set to `file`. The URI of the location for the file. **Important**: This link must be
|
|
15302
15300
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15303
15301
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15304
15302
|
*
|
|
15305
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15306
|
-
* message body
|
|
15303
|
+
* `attachments.isInline`: Only used if the attachment type is set to `file`. If true, indicates that the attachment will be shown inline as an image
|
|
15304
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15307
15305
|
*
|
|
15308
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15306
|
+
* `attachments.itemId`: Only used if the attachment type is set to `item`. The EWS item ID of the existing e-mail you want to attach to the new message.
|
|
15309
15307
|
* This is a string up to 100 characters.
|
|
15310
15308
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
15311
15309
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
@@ -15345,18 +15343,18 @@ declare namespace Office {
|
|
|
15345
15343
|
*
|
|
15346
15344
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15347
15345
|
*
|
|
15348
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15346
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15349
15347
|
*
|
|
15350
15348
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15351
15349
|
*
|
|
15352
|
-
* `attachments.url`: Only used if type is set to file
|
|
15350
|
+
* `attachments.url`: Only used if the attachment type is set to `file`. The URI of the location for the file. **Important**: This link must be
|
|
15353
15351
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15354
15352
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15355
15353
|
*
|
|
15356
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15357
|
-
* message body
|
|
15354
|
+
* `attachments.isInline`: Only used if the attachment type is set to `file`. If true, indicates that the attachment will be shown inline as an image
|
|
15355
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15358
15356
|
*
|
|
15359
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15357
|
+
* `attachments.itemId`: Only used if the attachment type is set to `item`. The EWS item ID of the existing e-mail you want to attach to the new message.
|
|
15360
15358
|
* This is a string up to 100 characters.
|
|
15361
15359
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
15362
15360
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
@@ -16245,8 +16243,7 @@ declare namespace Office {
|
|
|
16245
16243
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
16246
16244
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16247
16245
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16248
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
16249
|
-
* attachment list.
|
|
16246
|
+
* `isInline`: If true, indicates that the attachment will be shown inline as an image in the message body and won't be displayed in the attachment list.
|
|
16250
16247
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
16251
16248
|
* type `Office.AsyncResult`. On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
16252
16249
|
* If uploading the attachment fails, the `asyncResult` object will contain an `Error` object that provides a description of
|
|
@@ -16327,7 +16324,7 @@ declare namespace Office {
|
|
|
16327
16324
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
16328
16325
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16329
16326
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16330
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body and
|
|
16327
|
+
* `isInline`: If true, indicates that the attachment will be shown inline as an image in the message body and won't be displayed in the attachment list.
|
|
16331
16328
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
16332
16329
|
* type Office.AsyncResult. On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
16333
16330
|
* If uploading the attachment fails, the `asyncResult` object will contain an `Error` object that provides a description of the error.
|
|
@@ -18297,7 +18294,7 @@ declare namespace Office {
|
|
|
18297
18294
|
* For guidance on how to implement these rules, see
|
|
18298
18295
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins | Contextual Outlook add-ins}.
|
|
18299
18296
|
*
|
|
18300
|
-
* - This method is used with the {@link https://learn.microsoft.com/
|
|
18297
|
+
* - This method is used with the {@link https://learn.microsoft.com/javascript/api/manifest/rule | activation rules feature for Outlook add-ins},
|
|
18301
18298
|
* which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365}.
|
|
18302
18299
|
*
|
|
18303
18300
|
* - If you specify an `ItemHasRegularExpressionMatch` rule on the body property of an item, the regular expression should further filter the body
|
|
@@ -18329,7 +18326,7 @@ declare namespace Office {
|
|
|
18329
18326
|
* For guidance on how to implement these rules, see
|
|
18330
18327
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins | Contextual Outlook add-ins}.
|
|
18331
18328
|
*
|
|
18332
|
-
* - This method is used with the {@link https://learn.microsoft.com/
|
|
18329
|
+
* - This method is used with the {@link https://learn.microsoft.com/javascript/api/manifest/rule | activation rules feature for Outlook add-ins},
|
|
18333
18330
|
* which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365}.
|
|
18334
18331
|
*
|
|
18335
18332
|
* - If you specify an `ItemHasRegularExpressionMatch` rule on the body property of an item, the regular expression should further filter the body
|
|
@@ -18386,7 +18383,7 @@ declare namespace Office {
|
|
|
18386
18383
|
* For guidance on how to implement these rules, see
|
|
18387
18384
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins | Contextual Outlook add-ins}.
|
|
18388
18385
|
*
|
|
18389
|
-
* - This method is used with the {@link https://learn.microsoft.com/
|
|
18386
|
+
* - This method is used with the {@link https://learn.microsoft.com/javascript/api/manifest/rule | activation rules feature for Outlook add-ins},
|
|
18390
18387
|
* which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | unified manifest for Microsoft 365}.
|
|
18391
18388
|
*
|
|
18392
18389
|
* - This method isn't supported in Outlook on iOS or Android. For more information on supported APIs in Outlook mobile, see
|
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.419",
|
|
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": "483db7a838d46a7de0844154ef58d3d1d01d9eb358eca16f353a6b0727cd2183",
|
|
49
49
|
"typeScriptVersion": "4.8"
|
|
50
50
|
}
|