@types/office-js-preview 1.0.422 → 1.0.424

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.
@@ -2,15 +2,14 @@
2
2
  > `npm install --save @types/office-js-preview`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for Office.js (https://github.com/OfficeDev/office-js).
5
+ This package contains type definitions for office-js-preview (https://github.com/OfficeDev/office-js).
6
6
 
7
7
  # Details
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: Fri, 06 Oct 2023 19:35:19 GMT
11
+ * Last updated: Wed, 18 Oct 2023 05:47:08 GMT
12
12
  * Dependencies: none
13
- * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
13
 
15
14
  # Credits
16
15
  These definitions were written by [OfficeDev](https://github.com/OfficeDev), [Ricky Kirkham](https://github.com/Rick-Kirkham), [Alex Jerabek](https://github.com/AlexJerabek), [Elizabeth Samuel](https://github.com/ElizabethSamuel-MSFT), [Alison McKay](https://github.com/alison-mk), and [Sam Ramon](https://github.com/samantharamon).
@@ -1,14 +1,3 @@
1
- // Type definitions for Office.js 1.0
2
- // Project: https://github.com/OfficeDev/office-js
3
- // Definitions by: OfficeDev <https://github.com/OfficeDev>,
4
- // Ricky Kirkham <https://github.com/Rick-Kirkham>,
5
- // Alex Jerabek <https://github.com/AlexJerabek>,
6
- // Elizabeth Samuel <https://github.com/ElizabethSamuel-MSFT>,
7
- // Alison McKay <https://github.com/alison-mk>,
8
- // Sam Ramon <https://github.com/samantharamon>
9
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
10
- // TypeScript Version: 2.4
11
-
12
1
  /*
13
2
  office-js
14
3
  Copyright (c) Microsoft Corporation
@@ -14449,10 +14438,7 @@ declare namespace Office {
14449
14438
  */
14450
14439
  addHandlerAsync(eventType: Office.EventType | string, handler: any, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
14451
14440
  /**
14452
- * Converts an item ID formatted for REST into EWS format.
14453
- *
14454
- * Item IDs retrieved via a REST API (such as the Outlook Mail API or the Microsoft Graph) use a different format than the format used by
14455
- * Exchange Web Services (EWS). The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
14441
+ * Converts a supported ID into the Exchange Web Services (EWS) format.
14456
14442
  *
14457
14443
  * @remarks
14458
14444
  * [Api set: Mailbox 1.3]
@@ -14461,13 +14447,19 @@ declare namespace Office {
14461
14447
  *
14462
14448
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14463
14449
  *
14464
- * **Important**: This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14450
+ * **Important**:
14451
+ *
14452
+ * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14465
14453
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
14466
14454
  *
14467
- * @param itemId - An item ID formatted for the Outlook REST APIs.
14455
+ * - Item IDs retrieved via a REST API (such as the Outlook Mail API or the Microsoft Graph) use a different format than the format used by EWS.
14456
+ * The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
14457
+ *
14458
+ * @param id - The ID to be converted into EWS format. This string can be an item ID formatted for the Outlook REST APIs or a conversation ID retrieved from
14459
+ * `Office.context.mailbox.item.conversationId`.
14468
14460
  * @param restVersion - A value indicating the version of the Outlook REST API used to retrieve the item ID.
14469
14461
  */
14470
- convertToEwsId(itemId: string, restVersion: MailboxEnums.RestVersion | string): string;
14462
+ convertToEwsId(id: string, restVersion: MailboxEnums.RestVersion | string): string;
14471
14463
  /**
14472
14464
  * Gets a dictionary containing time information in local client time.
14473
14465
  *
@@ -14491,7 +14483,7 @@ declare namespace Office {
14491
14483
  */
14492
14484
  convertToLocalClientTime(timeValue: Date): LocalClientTime;
14493
14485
  /**
14494
- * Converts an item ID formatted for EWS into REST format.
14486
+ * Converts a supported ID into REST format.
14495
14487
  *
14496
14488
  * @remarks
14497
14489
  * [Api set: Mailbox 1.3]
@@ -14505,15 +14497,17 @@ declare namespace Office {
14505
14497
  * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14506
14498
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
14507
14499
  *
14508
- * - Item IDs retrieved via EWS or via the `itemId` property use a different format than the format used by REST APIs (such as the
14500
+ * - Item IDs retrieved via Exchange Web Services (EWS) or via the `itemId` property use a different format than the format used by REST APIs (such as the
14509
14501
  * {@link https://learn.microsoft.com/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations | Outlook Mail API}
14510
- * or the {@link https://graph.microsoft.io/ | Microsoft Graph}.
14502
+ * or the {@link https://graph.microsoft.io/ | Microsoft Graph}).
14511
14503
  * The `convertToRestId` method converts an EWS-formatted ID into the proper format for REST.
14512
14504
  *
14513
- * @param itemId - An item ID formatted for Exchange Web Services (EWS)
14514
- * @param restVersion - A value indicating the version of the Outlook REST API that the converted ID will be used with.
14505
+ * @param id - The ID to be converted into REST format. This string can be an item ID formatted for EWS that's usually retrieved from
14506
+ * `Office.context.mailbox.item.itemId`, a conversation ID retrieved from `Office.context.mailbox.item.conversationId`, or a
14507
+ * series ID retrieved from `Office.context.mailbox.item.seriesId`.
14508
+ * @param restVersion - A value indicating the version of the Outlook REST API used with the converted ID.
14515
14509
  */
14516
- convertToRestId(itemId: string, restVersion: MailboxEnums.RestVersion | string): string;
14510
+ convertToRestId(id: string, restVersion: MailboxEnums.RestVersion | string): string;
14517
14511
  /**
14518
14512
  * Gets a `Date` object from a dictionary containing time information.
14519
14513
  *
@@ -28906,115 +28900,6 @@ declare namespace Excel {
28906
28900
  */
28907
28901
  undo = "undo"
28908
28902
  }
28909
- /**
28910
- * Represents a recorded change to the task, to be used as an input parameter.
28911
- *
28912
- * @remarks
28913
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28914
- * @beta
28915
- */
28916
- interface DocumentTaskChangeProperties {
28917
- /**
28918
- * Represents the user assigned to the task for an `assign` change action, or the user unassigned from the task for an `unassign` change action.
28919
- *
28920
- * @remarks
28921
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28922
- * @beta
28923
- */
28924
- assignee?: Excel.EmailIdentity;
28925
- /**
28926
- * Represents the identity of the user who made the task change.
28927
- *
28928
- * @remarks
28929
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28930
- * @beta
28931
- */
28932
- changedBy: Excel.EmailIdentity;
28933
- /**
28934
- * Represents the ID of the `comment` or `commentReply` to which the task change is anchored.
28935
- *
28936
- * @remarks
28937
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28938
- * @beta
28939
- */
28940
- commentId?: string;
28941
- /**
28942
- * Represents the creation date and time of the task change record. All dates are in UTC.
28943
- *
28944
- * @remarks
28945
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28946
- * @beta
28947
- */
28948
- createdDateTime?: Date;
28949
- /**
28950
- * Represents the task's due date and time. It is used for the `setSchedule` change action.
28951
- It is in UTC time zone. It can be set to `null` to remove the due date and time. It should be set together with `startDateTime` to avoid conflicts.
28952
- *
28953
- * @remarks
28954
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28955
- * @beta
28956
- */
28957
- dueDateTime?: Date;
28958
- /**
28959
- * The unique GUID of the task change.
28960
- *
28961
- * @remarks
28962
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28963
- * @beta
28964
- */
28965
- id: string;
28966
- /**
28967
- * Represents the task's completion percentage. It is used for the `setPercentComplete` change action.
28968
- This is a value betwen 0 and 100, where 100 represents a completed task. Changing this value to 100 also completes the associated comment. Changing the completion from 100 to a lower value reactivates the associated comment.
28969
- *
28970
- * @remarks
28971
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28972
- * @beta
28973
- */
28974
- percentComplete?: number;
28975
- /**
28976
- * Represents the task's priority. It is used for the `setPriority` change action.
28977
- This is a value between 0 and 10, with 5 being the default priority if not set, and where 0 represents the highest priority.
28978
- *
28979
- * @remarks
28980
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28981
- * @beta
28982
- */
28983
- priority?: number;
28984
- /**
28985
- * Represents the task's start date and time. It is used for the `setSchedule` change action.
28986
- It is in UTC time zone. It can be set to `null` to remove the start date and time. It should be set together with `dueDateTime` to avoid conflicts.
28987
- *
28988
- * @remarks
28989
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28990
- * @beta
28991
- */
28992
- startDateTime?: Date;
28993
- /**
28994
- * Represents the task's title. It is used for the `setTitle` change action.
28995
- *
28996
- * @remarks
28997
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28998
- * @beta
28999
- */
29000
- title?: string;
29001
- /**
29002
- * Represents the action type of the task change record. Some examples of action types are assign, undo, and setPriority.
29003
- *
29004
- * @remarks
29005
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
29006
- * @beta
29007
- */
29008
- type: Excel.DocumentTaskChangeAction | "unknown" | "create" | "assign" | "unassign" | "unassignAll" | "setSchedule" | "setPercentComplete" | "setPriority" | "remove" | "restore" | "setTitle" | "undo";
29009
- /**
29010
- * Represents the `DocumentTaskChange.id` property that was undone for the `undo` change action.
29011
- *
29012
- * @remarks
29013
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
29014
- * @beta
29015
- */
29016
- undoChangeId?: string;
29017
- }
29018
28903
  /**
29019
28904
  * Represents a recorded change to the task.
29020
28905
  *
@@ -33269,6 +33154,15 @@ declare namespace Excel {
33269
33154
  * [Api set: ExcelApi 1.9]
33270
33155
  */
33271
33156
  chartDataPointTrack: boolean;
33157
+ /**
33158
+ * Specifies the maximum length of time, in seconds, allotted for a formula that depends on an external code service to complete.
33159
+ The valid range is 1 to 86400, inclusive.
33160
+ *
33161
+ * @remarks
33162
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
33163
+ * @beta
33164
+ */
33165
+ externalCodeServiceTimeout: number;
33272
33166
  /**
33273
33167
  * Specifies if changes have been made since the workbook was last saved.
33274
33168
  You can set this property to `true` if you want to close a modified workbook without either saving it or being prompted to save it.
@@ -64857,6 +64751,7 @@ declare namespace Excel {
64857
64751
  openWorkbookLinksBlocked = "OpenWorkbookLinksBlocked",
64858
64752
  operationCellsExceedLimit = "OperationCellsExceedLimit",
64859
64753
  pivotTableRangeConflict = "PivotTableRangeConflict",
64754
+ powerQueryRefreshResourceChallenge = "PowerQueryRefreshResourceChallenge",
64860
64755
  rangeExceedsLimit = "RangeExceedsLimit",
64861
64756
  refreshWorkbookLinksBlocked = "RefreshWorkbookLinksBlocked",
64862
64757
  requestAborted = "RequestAborted",
@@ -65044,6 +64939,15 @@ declare namespace Excel {
65044
64939
  * [Api set: ExcelApi 1.9]
65045
64940
  */
65046
64941
  chartDataPointTrack?: boolean;
64942
+ /**
64943
+ * Specifies the maximum length of time, in seconds, allotted for a formula that depends on an external code service to complete.
64944
+ The valid range is 1 to 86400, inclusive.
64945
+ *
64946
+ * @remarks
64947
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
64948
+ * @beta
64949
+ */
64950
+ externalCodeServiceTimeout?: number;
65047
64951
  /**
65048
64952
  * Specifies if changes have been made since the workbook was last saved.
65049
64953
  You can set this property to `true` if you want to close a modified workbook without either saving it or being prompted to save it.
@@ -70390,6 +70294,15 @@ declare namespace Excel {
70390
70294
  * [Api set: ExcelApi 1.9]
70391
70295
  */
70392
70296
  chartDataPointTrack?: boolean;
70297
+ /**
70298
+ * Specifies the maximum length of time, in seconds, allotted for a formula that depends on an external code service to complete.
70299
+ The valid range is 1 to 86400, inclusive.
70300
+ *
70301
+ * @remarks
70302
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
70303
+ * @beta
70304
+ */
70305
+ externalCodeServiceTimeout?: number;
70393
70306
  /**
70394
70307
  * Specifies if changes have been made since the workbook was last saved.
70395
70308
  You can set this property to `true` if you want to close a modified workbook without either saving it or being prompted to save it.
@@ -77674,6 +77587,15 @@ declare namespace Excel {
77674
77587
  * [Api set: ExcelApi 1.9]
77675
77588
  */
77676
77589
  chartDataPointTrack?: boolean;
77590
+ /**
77591
+ * Specifies the maximum length of time, in seconds, allotted for a formula that depends on an external code service to complete.
77592
+ The valid range is 1 to 86400, inclusive.
77593
+ *
77594
+ * @remarks
77595
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
77596
+ * @beta
77597
+ */
77598
+ externalCodeServiceTimeout?: boolean;
77677
77599
  /**
77678
77600
  * Specifies if changes have been made since the workbook was last saved.
77679
77601
  You can set this property to `true` if you want to close a modified workbook without either saving it or being prompted to save it.
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.422",
4
- "description": "TypeScript definitions for Office.js",
3
+ "version": "1.0.424",
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",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "OfficeDev",
10
- "url": "https://github.com/OfficeDev",
11
- "githubUsername": "OfficeDev"
10
+ "githubUsername": "OfficeDev",
11
+ "url": "https://github.com/OfficeDev"
12
12
  },
13
13
  {
14
14
  "name": "Ricky Kirkham",
15
- "url": "https://github.com/Rick-Kirkham",
16
- "githubUsername": "Rick-Kirkham"
15
+ "githubUsername": "Rick-Kirkham",
16
+ "url": "https://github.com/Rick-Kirkham"
17
17
  },
18
18
  {
19
19
  "name": "Alex Jerabek",
20
- "url": "https://github.com/AlexJerabek",
21
- "githubUsername": "AlexJerabek"
20
+ "githubUsername": "AlexJerabek",
21
+ "url": "https://github.com/AlexJerabek"
22
22
  },
23
23
  {
24
24
  "name": "Elizabeth Samuel",
25
- "url": "https://github.com/ElizabethSamuel-MSFT",
26
- "githubUsername": "ElizabethSamuel-MSFT"
25
+ "githubUsername": "ElizabethSamuel-MSFT",
26
+ "url": "https://github.com/ElizabethSamuel-MSFT"
27
27
  },
28
28
  {
29
29
  "name": "Alison McKay",
30
- "url": "https://github.com/alison-mk",
31
- "githubUsername": "alison-mk"
30
+ "githubUsername": "alison-mk",
31
+ "url": "https://github.com/alison-mk"
32
32
  },
33
33
  {
34
34
  "name": "Sam Ramon",
35
- "url": "https://github.com/samantharamon",
36
- "githubUsername": "samantharamon"
35
+ "githubUsername": "samantharamon",
36
+ "url": "https://github.com/samantharamon"
37
37
  }
38
38
  ],
39
39
  "main": "",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "8e6a6b3b7eeae372f2cf2e7bfd79f3c619862ee811c72a3783be20254da3a0f0",
48
+ "typesPublisherContentHash": "d2650a941d06bca35871bec50809bb29cb742aec4189fb84df4a3ebb9b2c9e03",
49
49
  "typeScriptVersion": "4.5"
50
50
  }