@types/office-js-preview 1.0.579 → 1.0.580

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.
@@ -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: Tue, 01 Apr 2025 18:39:20 GMT
11
+ * Last updated: Mon, 07 Apr 2025 19:02:16 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -12844,6 +12844,21 @@ declare namespace Office {
12844
12844
  interface AttachmentDetailsCompose {
12845
12845
  /**
12846
12846
  * Gets a value that indicates the attachment's type.
12847
+ *
12848
+ * @remarks
12849
+ *
12850
+ * **Important**:
12851
+ *
12852
+ * - In Outlook on the web and new Outlook on Windows, a message or appointment that's locally saved then attached using
12853
+ * drag-and-drop or the **Attach Item** option is of type `Office.MailboxEnums.AttachmentType.File`. The file name extension is
12854
+ * returned in the `name` property. However, a message or appointment that's attached using the **Forward as Attachment** option
12855
+ * is of type `Office.MailboxEnums.AttachmentType.Item`. In this case, an extension isn't returned in the `name` property.
12856
+ *
12857
+ * - In classic Outlook on Windows, a message or appointment that's attached using drag-and-drop, **Attach File**, or
12858
+ * **Forward as Attachment** is of type `Office.MailboxEnums.AttachmentType.Item`. A file name extension isn't returned in the `name` property.
12859
+ *
12860
+ * - In Outlook on Mac, a message or appointment that's attached using drag-and-drop, **Attach Item**, or **Forward as Attachment** is of type
12861
+ * `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
12847
12862
  */
12848
12863
  attachmentType: MailboxEnums.AttachmentType | string;
12849
12864
  /**
@@ -12857,8 +12872,22 @@ declare namespace Office {
12857
12872
  /**
12858
12873
  * Gets the name of the attachment.
12859
12874
  *
12860
- * **Important**: For message or appointment items that were attached by drag-and-drop or "Attach Item",
12861
- * `name` includes a file extension in Outlook on Mac, but excludes the extension on the web or on Windows.
12875
+ * @remarks
12876
+ *
12877
+ * **Important**:
12878
+ *
12879
+ * - An attachment of type `Office.MailboxEnums.AttachmentType.Item` doesn't return a file name extension in the `name` property.
12880
+ *
12881
+ * - In Outlook on the web and new Outlook on Windows, a message or appointment that's locally saved then attached using
12882
+ * drag-and-drop or the **Attach Item** option is of type `Office.MailboxEnums.AttachmentType.File`. The file name extension is
12883
+ * returned in the `name` property. However, a message or appointment that's attached using the **Forward as Attachment** option
12884
+ * is of type `Office.MailboxEnums.AttachmentType.Item`. In this case, an extension isn't returned in the `name` property.
12885
+ *
12886
+ * - In classic Outlook on Windows, a message or appointment that's attached using drag-and-drop, **Attach File**, or
12887
+ * **Forward as Attachment** is of type `Office.MailboxEnums.AttachmentType.Item`. A file name extension isn't returned in the `name` property.
12888
+ *
12889
+ * - In Outlook on Mac, a message or appointment that's attached using drag-and-drop, **Attach Item**, or **Forward as Attachment** is of type
12890
+ * `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
12862
12891
  */
12863
12892
  name: string;
12864
12893
  /**
@@ -12909,8 +12938,9 @@ declare namespace Office {
12909
12938
  /**
12910
12939
  * Gets the name of the attachment.
12911
12940
  *
12912
- * **Important**: For message or appointment items that were attached by drag-and-drop or "Attach Item",
12913
- * `name` includes a file extension in Outlook on Mac, but excludes the extension on the web or on Windows.
12941
+ * @remarks
12942
+ *
12943
+ * **Important**: An attachment of type `Office.MailboxEnums.AttachmentType.Item` doesn't return a file name extension in the `name` property.
12914
12944
  */
12915
12945
  name: string;
12916
12946
  /**
@@ -21499,6 +21529,10 @@ declare namespace Office {
21499
21529
  *
21500
21530
  * - To retrieve the JSON data, call `Office.context.mailboxitem.getInitializationContextAsync`. If you create a JSON string using
21501
21531
  * `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using `JSON.parse()` once you retrieve it.
21532
+ *
21533
+ * - To prevent the task pane of a notification message from relaunching if it's already open, implement a handler for the `Office.EventType.InitializationContextChanged` event.
21534
+ * You can then pass the {@link https://learn.microsoft.com/javascript/api/outlook/office.initializationcontextchangedeventargs?view=outlook-js-1.15&preserve-view=true | event arguments}
21535
+ * to the `contextData` property.
21502
21536
  */
21503
21537
  contextData: any;
21504
21538
  }
@@ -23644,6 +23678,10 @@ declare namespace Office {
23644
23678
  *
23645
23679
  * - When you configure a button in the Smart Alerts dialog to run a function, a button for the function is also added to the ribbon or action bar of the Outlook client.
23646
23680
  * Use the `contextData` option to distinguish when a user runs the function from the Smart Alerts dialog.
23681
+ *
23682
+ * - To prevent the task pane of a Smart Alerts add-in from relaunching if it's already open, implement a handler for the `Office.EventType.InitializationContextChanged` event.
23683
+ * You can then pass the {@link https://learn.microsoft.com/javascript/api/outlook/office.initializationcontextchangedeventargs?view=outlook-js-1.15&preserve-view=true | event arguments}
23684
+ * to the `contextData` property.
23647
23685
  */
23648
23686
  contextData?: any;
23649
23687
  /**
@@ -23823,6 +23861,10 @@ declare namespace Office {
23823
23861
  *
23824
23862
  * - If you implement a task pane to open after a reported message is processed, when the `event.completed` call occurs, any task pane that's open or pinned is closed.
23825
23863
  *
23864
+ * - To prevent the task pane of a spam-reporting add-in from relaunching if it's already open, implement a handler for the `Office.EventType.InitializationContextChanged` event.
23865
+ * You can then pass the {@link https://learn.microsoft.com/javascript/api/outlook/office.initializationcontextchangedeventargs?view=outlook-js-1.15&preserve-view=true | event arguments}
23866
+ * to the `contextData` property.
23867
+ *
23826
23868
  * - To retrieve the value of the `contextData` property, you must call `Office.context.mailbox.item.getInitializationContextAsync` in the JavaScript implementation
23827
23869
  * of your task pane. If you create a JSON string using `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using
23828
23870
  * `JSON.parse()` once you retrieve it.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.579",
3
+ "version": "1.0.580",
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",
@@ -46,7 +46,7 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "1700e3f24560876db50db4022f11637da640221032ca20eae19f8c191706d97b",
49
+ "typesPublisherContentHash": "b544b621420d74839b7f9239bc4c72dfbd4b77d83bed4b7dfc25fd3c2c532bff",
50
50
  "typeScriptVersion": "5.1",
51
51
  "nonNpm": true
52
52
  }