@types/office-js-preview 1.0.504 → 1.0.505
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 +27 -30
- 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: Tue, 10 Sep 2024 18:09:15 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -8885,7 +8885,7 @@ declare namespace Office {
|
|
|
8885
8885
|
Removed = "removed"
|
|
8886
8886
|
}
|
|
8887
8887
|
/**
|
|
8888
|
-
* Specifies
|
|
8888
|
+
* Specifies the attachment's type.
|
|
8889
8889
|
*
|
|
8890
8890
|
* @remarks
|
|
8891
8891
|
*
|
|
@@ -10494,8 +10494,7 @@ declare namespace Office {
|
|
|
10494
10494
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
10495
10495
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10496
10496
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10497
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
10498
|
-
* and should not be displayed in the attachment list.
|
|
10497
|
+
* `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.
|
|
10499
10498
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10500
10499
|
* of type `Office.AsyncResult`.
|
|
10501
10500
|
* On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
@@ -10573,8 +10572,7 @@ declare namespace Office {
|
|
|
10573
10572
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
10574
10573
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10575
10574
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10576
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
10577
|
-
* and should not be displayed in the attachment list.
|
|
10575
|
+
* `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.
|
|
10578
10576
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10579
10577
|
* of type `Office.AsyncResult`.
|
|
10580
10578
|
* On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
@@ -12547,7 +12545,7 @@ declare namespace Office {
|
|
|
12547
12545
|
/**
|
|
12548
12546
|
* Represents an attachment on an item. Compose mode only.
|
|
12549
12547
|
*
|
|
12550
|
-
* An array of `AttachmentDetailsCompose` objects is returned
|
|
12548
|
+
* An array of `AttachmentDetailsCompose` objects is returned by the `getAttachmentsAsync` method.
|
|
12551
12549
|
*
|
|
12552
12550
|
* @remarks
|
|
12553
12551
|
* [Api set: Mailbox 1.8]
|
|
@@ -12558,7 +12556,7 @@ declare namespace Office {
|
|
|
12558
12556
|
*/
|
|
12559
12557
|
interface AttachmentDetailsCompose {
|
|
12560
12558
|
/**
|
|
12561
|
-
* Gets a value that indicates the type
|
|
12559
|
+
* Gets a value that indicates the attachment's type.
|
|
12562
12560
|
*/
|
|
12563
12561
|
attachmentType: MailboxEnums.AttachmentType | string;
|
|
12564
12562
|
/**
|
|
@@ -12566,7 +12564,7 @@ declare namespace Office {
|
|
|
12566
12564
|
*/
|
|
12567
12565
|
id: string;
|
|
12568
12566
|
/**
|
|
12569
|
-
* Gets a value that indicates whether the attachment
|
|
12567
|
+
* Gets a value that indicates whether the attachment appears as an image in the body of the item instead of in the attachment list.
|
|
12570
12568
|
*/
|
|
12571
12569
|
isInline: boolean;
|
|
12572
12570
|
/**
|
|
@@ -12588,7 +12586,7 @@ declare namespace Office {
|
|
|
12588
12586
|
/**
|
|
12589
12587
|
* Represents an attachment on an item from the server. Read mode only.
|
|
12590
12588
|
*
|
|
12591
|
-
* An array of `AttachmentDetails` objects is returned as the attachments property of an appointment or message item.
|
|
12589
|
+
* An array of `AttachmentDetails` objects is returned as the `attachments` property of an appointment or message item.
|
|
12592
12590
|
*
|
|
12593
12591
|
* @remarks
|
|
12594
12592
|
* [Api set: Mailbox 1.1]
|
|
@@ -12599,7 +12597,7 @@ declare namespace Office {
|
|
|
12599
12597
|
*/
|
|
12600
12598
|
interface AttachmentDetails {
|
|
12601
12599
|
/**
|
|
12602
|
-
* Gets a value that indicates the type
|
|
12600
|
+
* Gets a value that indicates the attachment's type.
|
|
12603
12601
|
*/
|
|
12604
12602
|
attachmentType: MailboxEnums.AttachmentType | string;
|
|
12605
12603
|
/**
|
|
@@ -12618,7 +12616,7 @@ declare namespace Office {
|
|
|
12618
12616
|
*/
|
|
12619
12617
|
id: string;
|
|
12620
12618
|
/**
|
|
12621
|
-
* Gets a value that indicates whether the attachment
|
|
12619
|
+
* Gets a value that indicates whether the attachment appears as an image in the body of the item instead of in the attachment list.
|
|
12622
12620
|
*/
|
|
12623
12621
|
isInline: boolean;
|
|
12624
12622
|
/**
|
|
@@ -12634,7 +12632,7 @@ declare namespace Office {
|
|
|
12634
12632
|
size: number;
|
|
12635
12633
|
}
|
|
12636
12634
|
/**
|
|
12637
|
-
* Provides information about
|
|
12635
|
+
* Provides information about the attachment on a mail item that raised the
|
|
12638
12636
|
* `Office.EventType.AttachmentsChanged` event.
|
|
12639
12637
|
*
|
|
12640
12638
|
* @remarks
|
|
@@ -15505,18 +15503,18 @@ declare namespace Office {
|
|
|
15505
15503
|
*
|
|
15506
15504
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15507
15505
|
*
|
|
15508
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15506
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15509
15507
|
*
|
|
15510
15508
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15511
15509
|
*
|
|
15512
|
-
* `attachments.url`: Only used if type is set to file
|
|
15510
|
+
* `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
|
|
15513
15511
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15514
15512
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15515
15513
|
*
|
|
15516
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15517
|
-
* message body
|
|
15514
|
+
* `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
|
|
15515
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15518
15516
|
*
|
|
15519
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15517
|
+
* `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.
|
|
15520
15518
|
* This is a string up to 100 characters.
|
|
15521
15519
|
*/
|
|
15522
15520
|
displayNewMessageForm(parameters: any): void;
|
|
@@ -15552,18 +15550,18 @@ declare namespace Office {
|
|
|
15552
15550
|
*
|
|
15553
15551
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15554
15552
|
*
|
|
15555
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15553
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15556
15554
|
*
|
|
15557
15555
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15558
15556
|
*
|
|
15559
|
-
* `attachments.url`: Only used if type is set to file
|
|
15557
|
+
* `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
|
|
15560
15558
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15561
15559
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15562
15560
|
*
|
|
15563
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15564
|
-
* message body
|
|
15561
|
+
* `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
|
|
15562
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15565
15563
|
*
|
|
15566
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15564
|
+
* `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.
|
|
15567
15565
|
* This is a string up to 100 characters.
|
|
15568
15566
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
15569
15567
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
@@ -15603,18 +15601,18 @@ declare namespace Office {
|
|
|
15603
15601
|
*
|
|
15604
15602
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15605
15603
|
*
|
|
15606
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15604
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15607
15605
|
*
|
|
15608
15606
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15609
15607
|
*
|
|
15610
|
-
* `attachments.url`: Only used if type is set to file
|
|
15608
|
+
* `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
|
|
15611
15609
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15612
15610
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15613
15611
|
*
|
|
15614
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15615
|
-
* message body
|
|
15612
|
+
* `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
|
|
15613
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15616
15614
|
*
|
|
15617
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15615
|
+
* `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.
|
|
15618
15616
|
* This is a string up to 100 characters.
|
|
15619
15617
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
15620
15618
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
@@ -16503,8 +16501,7 @@ declare namespace Office {
|
|
|
16503
16501
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
16504
16502
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16505
16503
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16506
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
16507
|
-
* attachment list.
|
|
16504
|
+
* `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.
|
|
16508
16505
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
16509
16506
|
* type `Office.AsyncResult`. On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
16510
16507
|
* If uploading the attachment fails, the `asyncResult` object will contain an `Error` object that provides a description of
|
|
@@ -16585,7 +16582,7 @@ declare namespace Office {
|
|
|
16585
16582
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
16586
16583
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16587
16584
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16588
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body and
|
|
16585
|
+
* `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.
|
|
16589
16586
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
16590
16587
|
* type Office.AsyncResult. On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
16591
16588
|
* If uploading the attachment fails, the `asyncResult` object will contain an `Error` object that provides a description of the error.
|
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.505",
|
|
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,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "7c7b3480358851b58bd1a7c94fb21b3d2af0b6c2c1e02fded642b1dd4f3ef0af",
|
|
49
49
|
"typeScriptVersion": "4.8",
|
|
50
50
|
"nonNpm": true
|
|
51
51
|
}
|